Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.604/2.604, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001089/0.001089, allocations: 169.2 kB / 498.1 MB, free: 5.762 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.575/1.575, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.001046/0.001046, allocations: 105.4 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005124/0.0005126, allocations: 11.59 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3934, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2537/0.6472, allocations: 149.6 MB / 1.369 GB, free: 12.47 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.6475, allocations: 75.95 kB / 1.369 GB, free: 12.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003999/0.6515, allocations: 1.07 MB / 1.37 GB, free: 11.33 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.733e-06/0.6515, allocations: 7.938 kB / 1.37 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.6515, allocations: 0 / 1.37 GB, free: 11.32 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.0004784/0.652, allocations: 351.2 kB / 1.37 GB, free: 10.93 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.6521, allocations: 11.97 kB / 1.37 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.6521, allocations: 4 kB / 1.37 GB, free: 10.91 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.6523, allocations: 170.9 kB / 1.371 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.6523, allocations: 0 / 1.371 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.6523, allocations: 8 kB / 1.371 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.6526, allocations: 61.67 kB / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.6526, allocations: 0 / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.6526, allocations: 4 kB / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.6527, allocations: 3.984 kB / 1.371 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.653, allocations: 59.89 kB / 1.371 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004815/0.6535, allocations: 276.8 kB / 1.371 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.6539, allocations: 66.53 kB / 1.371 GB, free: 10.17 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003312/0.6543, allocations: 405.7 kB / 1.371 GB, free: 9.684 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.6543, allocations: 34.5 kB / 1.372 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.6543, allocations: 0 / 1.372 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005591/0.6549, allocations: 113.5 kB / 1.372 GB, free: 9.523 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.6549, allocations: 55.36 kB / 1.372 GB, free: 9.457 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.655, allocations: 104.9 kB / 1.372 GB, free: 9.348 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.6551, allocations: 29.7 kB / 1.372 GB, free: 9.312 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.6551, allocations: 88.14 kB / 1.372 GB, free: 9.223 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.6552, allocations: 11.84 kB / 1.372 GB, free: 9.211 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.6552, allocations: 0 / 1.372 GB, free: 9.211 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6553, allocations: 314.8 kB / 1.372 GB, free: 8.895 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.6555, allocations: 23.97 kB / 1.372 GB, free: 8.871 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.6556, allocations: 31.92 kB / 1.372 GB, free: 8.84 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.6558, allocations: 23.97 kB / 1.372 GB, free: 8.816 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6558, allocations: 0 / 1.372 GB, free: 8.816 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003443/0.6561, allocations: 89.66 kB / 1.372 GB, free: 8.723 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.6562, allocations: 5.094 kB / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.6562, allocations: 0 / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.6562, allocations: 0 / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.6563, allocations: 15.98 kB / 1.372 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.6563, allocations: 0 / 1.372 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.438e-05/0.6564, allocations: 15.84 kB / 1.372 GB, free: 8.688 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.6564, allocations: 8 kB / 1.372 GB, free: 8.68 MB / 0.8698 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 8.135e-05/0.6565, allocations: 111 kB / 1.373 GB, free: 8.562 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.6566, allocations: 4 kB / 1.373 GB, free: 8.559 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003851/0.657, allocations: 97.48 kB / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.657, allocations: 7.938 kB / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.657, allocations: 0 / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.657, allocations: 0 / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.6572, allocations: 165.6 kB / 1.373 GB, free: 8.227 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.6572, allocations: 4 kB / 1.373 GB, free: 8.223 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.6574, allocations: 15.98 kB / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.6574, allocations: 0 / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.6574, allocations: 3.984 kB / 1.373 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.6574, allocations: 0 / 1.373 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6574, allocations: 3.938 kB / 1.373 GB, free: 8.199 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.6578, allocations: 195.3 kB / 1.373 GB, free: 7.992 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.6578, allocations: 77.11 kB / 1.373 GB, free: 7.898 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.6579, allocations: 4.406 kB / 1.373 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.658, allocations: 12 kB / 1.373 GB, free: 7.883 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.6581, allocations: 7.984 kB / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.6581, allocations: 4 kB / 1.373 GB, free: 7.871 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.524e-05/0.6582, allocations: 83.27 kB / 1.373 GB, free: 7.789 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6582, allocations: 0 / 1.373 GB, free: 7.789 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004146/0.6586, allocations: 20 kB / 1.373 GB, free: 7.77 MB / 0.8698 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.000188/0.6588, allocations: 111 kB / 1.373 GB, free: 7.652 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003205/0.6591, allocations: 59.95 kB / 1.373 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.6591, allocations: 0 / 1.373 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.6593, allocations: 31.91 kB / 1.373 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.6596, allocations: 15.95 kB / 1.373 GB, free: 7.547 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.6599, allocations: 128.6 kB / 1.374 GB, free: 7.395 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.6602, allocations: 0.6848 MB / 1.374 GB, free: 6.684 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.618e-05/0.6603, allocations: 4 kB / 1.374 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.6603, allocations: 11.44 kB / 1.374 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of SimCode: time 5.91e-07/0.6604, allocations: 0 / 1.374 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of Templates: time 0.003427/0.6638, allocations: 0.6292 MB / 1.375 GB, free: 6.039 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches