Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.Factorial.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001778, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.002051/0.002051, allocations: 187 kB / 17.34 MB, free: 5.742 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.476/2.476, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 71.88 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8351/0.8364, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002962/0.8394, allocations: 1.509 MB / 1.169 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003886/0.8398, allocations: 128.5 kB / 1.169 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.49e-05/0.8399, allocations: 3.938 kB / 1.169 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/0.8399, allocations: 0 / 1.169 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.525e-05/0.84, allocations: 3.938 kB / 1.169 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.8402, allocations: 31.91 kB / 1.169 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.14e-05/0.8403, allocations: 27.97 kB / 1.169 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.8404, allocations: 8 kB / 1.169 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.591e-05/0.8405, allocations: 15.92 kB / 1.169 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.46e-05/0.8406, allocations: 15.92 kB / 1.169 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.8406, allocations: 4 kB / 1.169 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.8407, allocations: 8 kB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.597e-05/0.8407, allocations: 7.938 kB / 1.169 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.8407, allocations: 19.91 kB / 1.169 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.8408, allocations: 35.91 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.8408, allocations: 0 / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8409, allocations: 0 / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.8409, allocations: 3.938 kB / 1.169 GB, free: 2.051 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005007/0.8414, allocations: 347.2 kB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.8414, allocations: 8.922 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.8415, allocations: 4.938 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.8416, allocations: 164.4 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.8416, allocations: 8.375 kB / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.8417, allocations: 384 / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.8419, allocations: 58.22 kB / 1.17 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.8419, allocations: 4.125 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.8419, allocations: 7.938 kB / 1.17 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.8419, allocations: 4 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.8421, allocations: 39.95 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003816/0.8425, allocations: 268.9 kB / 1.17 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.8428, allocations: 58.47 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.322e-05/0.8429, allocations: 28.84 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.843, allocations: 81.09 kB / 1.17 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.8431, allocations: 42.56 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.8431, allocations: 0 / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003756/0.8435, allocations: 93.61 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.8435, allocations: 51.41 kB / 1.17 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.811e-05/0.8436, allocations: 97.86 kB / 1.17 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.8436, allocations: 25.7 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.8437, allocations: 88.12 kB / 1.17 GB, free: 392 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.8437, allocations: 13.73 kB / 1.171 GB, free: 380 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.8437, allocations: 13.72 kB / 1.171 GB, free: 360 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.8438, allocations: 318.8 kB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.75e-05/0.8439, allocations: 19.97 kB / 1.171 GB, free: 12 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.844, allocations: 16.06 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.8442, allocations: 56.75 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.8442, allocations: 3.938 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002108/0.8444, allocations: 73.56 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.8445, allocations: 4 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.8445, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.8445, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.733e-05/0.8446, allocations: 11.98 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.8446, allocations: 3.938 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.963e-05/0.8447, allocations: 15.98 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.8447, allocations: 0 / 1.171 GB, free: 15.82 MB / 0.9044 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 (rea2Int.y,fac.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.473e-05/0.8448, allocations: 113.8 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.8448, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.8451, allocations: 85.14 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.8451, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.8451, allocations: 7.922 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.8451, allocations: 4 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.8453, allocations: 161.6 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8453, allocations: 0 / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.524e-05/0.8454, allocations: 11.98 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.8454, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.8454, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.8454, allocations: 7.922 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.8455, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.8457, allocations: 172 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.8458, allocations: 88.95 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.8458, allocations: 4 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-05/0.8459, allocations: 7.984 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.846, allocations: 7.984 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.846, allocations: 48 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.263e-05/0.846, allocations: 87.27 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.846, allocations: 4 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002238/0.8463, allocations: 8 kB / 1.172 GB, free: 14.96 MB / 0.9044 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 (fac.y,rea2Int.y) * 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 (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.0001662/0.8464, allocations: 103.2 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.8467, allocations: 51.83 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8467, allocations: 0 / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.132e-05/0.8468, allocations: 23.98 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.8471, allocations: 7.938 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.8474, allocations: 143.2 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.8477, allocations: 0.6768 MB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.853e-05/0.8478, allocations: 11.44 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.8478, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of Templates: time 0.002176/0.8499, allocations: 0.7413 MB / 1.173 GB, free: 13.14 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches