Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001584, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 192.7 kB / 16.13 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.833/2.833, allocations: 472.7 MB / 0.7447 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 70.55 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3857, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00195/0.3877, allocations: 0.6348 MB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000253/0.388, allocations: 63.72 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.066e-05/0.388, allocations: 0 / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.3881, allocations: 0 / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-06/0.3881, allocations: 0 / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.3883, allocations: 11.98 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.837e-05/0.3884, allocations: 31.97 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.044e-05/0.3884, allocations: 4 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.594e-05/0.3884, allocations: 7.984 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.369e-05/0.3885, allocations: 15.98 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.508e-06/0.3885, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.721e-05/0.3885, allocations: 15.98 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.3886, allocations: 15.98 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.3886, allocations: 19.81 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.833e-05/0.3887, allocations: 35.88 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3887, allocations: 4 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3887, allocations: 0 / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.3887, allocations: 0 / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003082/0.389, allocations: 331.6 kB / 1.069 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.3891, allocations: 11.97 kB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.3891, allocations: 8.844 kB / 1.069 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.053e-05/0.3892, allocations: 168.6 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3892, allocations: 8.359 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.3892, allocations: 384 / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.3894, allocations: 66.23 kB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.3894, allocations: 192 / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.3894, allocations: 3.938 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3894, allocations: 0 / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.3896, allocations: 107.8 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.3897, allocations: 173.6 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.3899, allocations: 80.7 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.624e-05/0.3899, allocations: 32.84 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003542/0.3903, allocations: 405.5 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.3903, allocations: 30.56 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.3903, allocations: 0 / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0002399/0.3906, allocations: 129.7 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.3906, allocations: 51.41 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.072e-05/0.3907, allocations: 97.86 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3907, allocations: 29.7 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.3907, allocations: 80.14 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.3907, allocations: 23.66 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.3908, allocations: 29.7 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3909, allocations: 318.8 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.267e-05/0.391, allocations: 19.98 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.486e-05/0.391, allocations: 20.42 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.3911, allocations: 61 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.3911, allocations: 4 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001411/0.3913, allocations: 97.53 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3913, allocations: 4 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3913, allocations: 3.938 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.3913, allocations: 4 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.074e-05/0.3914, allocations: 12 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.3914, allocations: 3.938 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.534e-05/0.3915, allocations: 11.89 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3915, allocations: 8 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.3916, allocations: 123.3 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.3916, allocations: 7.984 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.3919, allocations: 125.4 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3919, allocations: 4 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.3919, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3919, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.392, allocations: 173.6 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.392, allocations: 7.984 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/0.3921, allocations: 16 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3921, allocations: 7.875 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3921, allocations: 7.984 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3921, allocations: 0 / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3921, allocations: 0 / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.3923, allocations: 113.1 kB / 1.071 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.3923, allocations: 96.88 kB / 1.071 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.3924, allocations: 4 kB / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.473e-05/0.3924, allocations: 0 / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.3924, allocations: 11.98 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.3924, allocations: 8 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.229e-05/0.3925, allocations: 75.28 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3925, allocations: 0 / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001959/0.3927, allocations: 12 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/0.3928, allocations: 123.1 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001242/0.393, allocations: 59.95 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.393, allocations: 0 / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.341e-05/0.393, allocations: 39.92 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.3932, allocations: 8.703 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002571/0.3935, allocations: 154.7 kB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.3937, allocations: 0.6848 MB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.415e-05/0.3938, allocations: 39.72 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.265e-05/0.3938, allocations: 11.44 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3938, allocations: 0 / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of Templates: time 0.002491/0.3963, allocations: 0.5978 MB / 1.073 GB, free: 4.625 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches