Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.454/2.454, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 187.4 kB / 0.4902 GB, free: 2.227 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.698/1.698, allocations: 223.1 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 103.9 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004507, allocations: 14.81 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3202, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2134/0.5337, allocations: 150.4 MB / 1.376 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5341, allocations: 67.97 kB / 1.376 GB, free: 3.027 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003632/0.5377, allocations: 1.063 MB / 1.377 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5378, allocations: 0 / 1.377 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.5378, allocations: 0 / 1.377 GB, free: 1.957 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004875/0.5383, allocations: 355.2 kB / 1.378 GB, free: 1.562 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.5383, allocations: 12.03 kB / 1.378 GB, free: 1.551 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.5384, allocations: 0 / 1.378 GB, free: 1.551 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.5385, allocations: 175 kB / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.5386, allocations: 4 kB / 1.378 GB, free: 1.336 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.5386, allocations: 4 kB / 1.378 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.5388, allocations: 65.66 kB / 1.378 GB, free: 1.262 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.5389, allocations: 3.938 kB / 1.378 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.5389, allocations: 0 / 1.378 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5389, allocations: 0 / 1.378 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.5391, allocations: 59.95 kB / 1.378 GB, free: 1.199 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005487/0.5397, allocations: 280.8 kB / 1.378 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000367/0.5401, allocations: 70.47 kB / 1.378 GB, free: 0.7969 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.5404, allocations: 397.7 kB / 1.379 GB, free: 324 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.5405, allocations: 42.5 kB / 1.379 GB, free: 272 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.5405, allocations: 0 / 1.379 GB, free: 272 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0004243/0.5409, allocations: 105.6 kB / 1.379 GB, free: 160 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.541, allocations: 59.34 kB / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.5411, allocations: 97.17 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.5411, allocations: 33.64 kB / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.5412, allocations: 96.09 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.5412, allocations: 11.91 kB / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.5412, allocations: 0 / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5413, allocations: 310.8 kB / 1.379 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.5414, allocations: 27.97 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.883e-05/0.5415, allocations: 31.92 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.359e-05/0.5416, allocations: 19.98 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5416, allocations: 0 / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002472/0.5419, allocations: 89.64 kB / 1.379 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.5419, allocations: 4 kB / 1.379 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.5419, allocations: 0 / 1.379 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.5419, allocations: 4 kB / 1.379 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.542, allocations: 11.98 kB / 1.38 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.5421, allocations: 0 / 1.38 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/0.5421, allocations: 11.78 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.5421, allocations: 7.922 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,falFac.k) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.087e-05/0.5422, allocations: 120.4 kB / 1.38 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.5423, allocations: 3.906 kB / 1.38 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/0.5426, allocations: 97.48 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.5426, allocations: 4 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5426, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.5426, allocations: 7.953 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.5428, allocations: 161.7 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.5428, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.461e-05/0.5429, allocations: 11.98 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.5429, allocations: 0 / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.5429, allocations: 0 / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.5429, allocations: 4 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5429, allocations: 3.938 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/0.5432, allocations: 187.5 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.308e-05/0.5433, allocations: 81.44 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.5433, allocations: 4 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.5434, allocations: 11.98 kB / 1.38 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.5435, allocations: 15.92 kB / 1.38 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.5435, allocations: 4 kB / 1.38 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.766e-05/0.5436, allocations: 83.28 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5436, allocations: 3.938 kB / 1.38 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002342/0.5438, allocations: 12 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,falFac.k) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000208/0.544, allocations: 119.2 kB / 1.38 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002659/0.5443, allocations: 59.89 kB / 1.38 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5443, allocations: 0 / 1.38 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.5444, allocations: 31.97 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.5447, allocations: 9.328 kB / 1.381 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.545, allocations: 120.7 kB / 1.381 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.5453, allocations: 0.6848 MB / 1.381 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.311e-05/0.5454, allocations: 12.53 kB / 1.381 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.82e-05/0.5454, allocations: 11.44 kB / 1.381 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5454, allocations: 0 / 1.381 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of Templates: time 0.003125/0.5485, allocations: 0.6245 MB / 1.382 GB, free: 12.69 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches