Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.006641/0.006641, allocations: 103.3 kB / 15.73 MB, free: 6.059 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.002369/0.00237, allocations: 186.6 kB / 16.67 MB, free: 5.977 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.645/2.645, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 60.09 kB / 1.054 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.838/0.8395, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00318/0.8427, allocations: 1.511 MB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004395/0.8432, allocations: 127.6 kB / 1.209 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.197e-05/0.8433, allocations: 4 kB / 1.209 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.18e-05/0.8433, allocations: 3.938 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.436e-05/0.8434, allocations: 0 / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.8437, allocations: 19.91 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.643e-05/0.8438, allocations: 31.92 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.8439, allocations: 15.98 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.536e-05/0.844, allocations: 11.94 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.915e-05/0.844, allocations: 11.98 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.844, allocations: 4 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.668e-05/0.8441, allocations: 15.92 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.8441, allocations: 11.98 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.8442, allocations: 15.92 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.8443, allocations: 31.89 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8443, allocations: 4 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8443, allocations: 0 / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.523e-06/0.8443, allocations: 4 kB / 1.21 GB, free: 11.76 MB / 0.9356 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.0004755/0.8448, allocations: 347.2 kB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.8449, allocations: 8.031 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.8449, allocations: 0.9375 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.845, allocations: 168.3 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.8451, allocations: 384 / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.8451, allocations: 12.36 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.8453, allocations: 58.22 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.8453, allocations: 192 / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.8453, allocations: 3.938 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.8453, allocations: 4 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.8455, allocations: 39.95 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004364/0.846, allocations: 256.9 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.8463, allocations: 70.41 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.491e-05/0.8464, allocations: 24.91 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.8466, allocations: 85.09 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.8466, allocations: 38.5 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.8466, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004112/0.847, allocations: 101.6 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.8471, allocations: 51.41 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.851e-05/0.8472, allocations: 101.9 kB / 1.211 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.8472, allocations: 29.64 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.8472, allocations: 80.14 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.8473, allocations: 13.72 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.8473, allocations: 13.72 kB / 1.211 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.8475, allocations: 318.8 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.787e-05/0.8476, allocations: 19.97 kB / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.507e-05/0.8477, allocations: 19.98 kB / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.8479, allocations: 40.81 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.8479, allocations: 7.938 kB / 1.211 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000229/0.8481, allocations: 81.5 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.8481, allocations: 5.406 kB / 1.211 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.8481, allocations: 4 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.8482, allocations: 0 / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.344e-05/0.8482, allocations: 11.98 kB / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.8483, allocations: 0 / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.289e-05/0.8483, allocations: 7.984 kB / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.8483, allocations: 0 / 1.211 GB, free: 9.535 MB / 0.9356 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 0.0001073/0.8485, allocations: 118.3 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.8485, allocations: 4 kB / 1.212 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002815/0.8488, allocations: 85.06 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.8488, allocations: 0 / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.8488, allocations: 0 / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.8488, allocations: 4 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.849, allocations: 165.6 kB / 1.212 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.849, allocations: 0 / 1.212 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.291e-05/0.8491, allocations: 15.98 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.8491, allocations: 0 / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.8491, allocations: 0 / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8491, allocations: 4 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8491, allocations: 0 / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.8494, allocations: 171.4 kB / 1.212 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.8494, allocations: 88.95 kB / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.8495, allocations: 0 / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.515e-05/0.8496, allocations: 7.984 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.8496, allocations: 19.86 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.8496, allocations: 4 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.595e-05/0.8497, allocations: 79.28 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8497, allocations: 3.938 kB / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002297/0.8499, allocations: 12 kB / 1.212 GB, free: 8.664 MB / 0.9356 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.0001509/0.8501, allocations: 99.25 kB / 1.212 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.8503, allocations: 51.94 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.8503, allocations: 0 / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.569e-05/0.8504, allocations: 19.98 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.8507, allocations: 7.938 kB / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000319/0.851, allocations: 121.4 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.8513, allocations: 0.6807 MB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.247e-05/0.8513, allocations: 7.938 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.8513, allocations: 15.44 kB / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.8513, allocations: 0 / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of Templates: time 0.003052/0.8544, allocations: 0.7213 MB / 1.214 GB, free: 6.883 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches