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 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.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.006/0.006001, allocations: 99.95 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.001337/0.001337, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.337/1.337, 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 12.0.0-master/package.mo): time 2.67/2.67, allocations: 472.6 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 59.91 kB / 1.069 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9378/0.9391, allocations: 159.9 MB / 1.226 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002737/0.9419, allocations: 1.503 MB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003791/0.9423, allocations: 135.6 kB / 1.227 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.462e-05/0.9424, allocations: 0 / 1.227 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.267e-05/0.9424, allocations: 3.938 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.636e-05/0.9425, allocations: 0 / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.9427, allocations: 23.91 kB / 1.227 GB, free: 12 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.441e-05/0.9428, allocations: 39.84 kB / 1.227 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.9429, allocations: 12 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.763e-05/0.943, allocations: 11.98 kB / 1.227 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.485e-05/0.943, allocations: 19.92 kB / 1.227 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.9431, allocations: 4 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 6.778e-05/0.9431, allocations: 8 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.634e-05/0.9432, allocations: 7.984 kB / 1.227 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.9432, allocations: 15.92 kB / 1.227 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.9433, allocations: 27.91 kB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.9434, allocations: 0 / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9434, allocations: 0 / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.9434, allocations: 0 / 1.227 GB, free: 11.86 MB / 0.9512 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.0004794/0.9439, allocations: 356.4 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.9439, allocations: 8.031 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.997e-05/0.9439, allocations: 8.891 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.9441, allocations: 160.4 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.9441, allocations: 4.312 kB / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.9442, allocations: 8.312 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.9444, allocations: 58.22 kB / 1.228 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.9444, allocations: 192 / 1.228 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.9444, allocations: 7.938 kB / 1.228 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.9444, allocations: 0 / 1.228 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.9446, allocations: 39.95 kB / 1.228 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.945, allocations: 272.9 kB / 1.228 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.9454, allocations: 62.41 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.9455, allocations: 24.91 kB / 1.228 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.9456, allocations: 89.09 kB / 1.228 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.9457, allocations: 30.56 kB / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.9457, allocations: 0 / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003918/0.9461, allocations: 93.56 kB / 1.229 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.9461, allocations: 55.41 kB / 1.229 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.506e-05/0.9462, allocations: 101.9 kB / 1.229 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.9462, allocations: 25.7 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.9463, allocations: 88.12 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.9463, allocations: 11.89 kB / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.9464, allocations: 13.72 kB / 1.229 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.9465, allocations: 314.8 kB / 1.229 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-05/0.9466, allocations: 15.97 kB / 1.229 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.027e-05/0.9467, allocations: 23.98 kB / 1.229 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.9468, allocations: 49.28 kB / 1.229 GB, free: 9.734 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.9468, allocations: 3.938 kB / 1.229 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002229/0.9471, allocations: 77.59 kB / 1.229 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.9471, allocations: 9.25 kB / 1.229 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.9471, allocations: 3.984 kB / 1.229 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.9471, allocations: 4 kB / 1.229 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.152e-05/0.9472, allocations: 11.98 kB / 1.229 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.9472, allocations: 0 / 1.229 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.742e-05/0.9473, allocations: 7.984 kB / 1.229 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.9473, allocations: 0 / 1.229 GB, free: 9.613 MB / 0.9512 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.036e-05/0.9474, allocations: 114.3 kB / 1.229 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.9474, allocations: 0 / 1.229 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.9477, allocations: 97.02 kB / 1.23 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.9477, allocations: 0 / 1.23 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.9477, allocations: 7.984 kB / 1.23 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.9478, allocations: 0 / 1.23 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.9479, allocations: 157.6 kB / 1.23 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.9479, allocations: 0 / 1.23 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.236e-05/0.948, allocations: 11.98 kB / 1.23 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.948, allocations: 0 / 1.23 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.948, allocations: 7.984 kB / 1.23 GB, free: 9.156 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.9481, allocations: 4 kB / 1.23 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9481, allocations: 0 / 1.23 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.9484, allocations: 171.5 kB / 1.23 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.9484, allocations: 81.06 kB / 1.23 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.9484, allocations: 0 / 1.23 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.541e-05/0.9485, allocations: 11.92 kB / 1.23 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.034e-05/0.9486, allocations: 15.98 kB / 1.23 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.9486, allocations: 3.938 kB / 1.23 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.982e-05/0.9487, allocations: 79.28 kB / 1.23 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9487, allocations: 0 / 1.23 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002316/0.9489, allocations: 8 kB / 1.23 GB, free: 8.754 MB / 0.9512 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.0001538/0.9491, allocations: 103.2 kB / 1.23 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002399/0.9493, allocations: 47.95 kB / 1.23 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9493, allocations: 0 / 1.23 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.851e-05/0.9494, allocations: 23.98 kB / 1.23 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.9497, allocations: 3.938 kB / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000302/0.9501, allocations: 125.2 kB / 1.23 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.9503, allocations: 0.6768 MB / 1.231 GB, free: 7.715 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.363e-05/0.9503, allocations: 8 kB / 1.231 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.9504, allocations: 11.44 kB / 1.231 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.9504, allocations: 0 / 1.231 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of Templates: time 0.003205/0.9536, allocations: 0.7112 MB / 1.232 GB, free: 6.992 MB / 0.9512 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