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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001113/0.001113, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001442/0.001442, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.937/2.937, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003312, allocations: 7.688 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3657, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001725/0.3675, allocations: 1.232 MB / 1.059 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003358/0.3678, allocations: 107.8 kB / 1.059 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.598e-05/0.3679, allocations: 0 / 1.059 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.3679, allocations: 3.984 kB / 1.059 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.92e-05/0.368, allocations: 7.938 kB / 1.059 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002026/0.3682, allocations: 23.97 kB / 1.059 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.463e-05/0.3682, allocations: 19.94 kB / 1.059 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.163e-05/0.3683, allocations: 11.98 kB / 1.059 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.727e-05/0.3684, allocations: 4 kB / 1.059 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.369e-05/0.3684, allocations: 15.92 kB / 1.059 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.3685, allocations: 4 kB / 1.059 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.424e-05/0.3685, allocations: 7.984 kB / 1.059 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.3685, allocations: 11.98 kB / 1.059 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.953e-05/0.3686, allocations: 33.64 kB / 1.059 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.278e-05/0.3687, allocations: 27.83 kB / 1.059 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3687, allocations: 0 / 1.059 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.953e-06/0.3687, allocations: 0 / 1.059 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.3687, allocations: 0 / 1.059 GB, free: 3.777 MB / 0.8106 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.0004381/0.3691, allocations: 343.5 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3692, allocations: 8.031 kB / 1.06 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.3692, allocations: 15.91 kB / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.3694, allocations: 163.1 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.3694, allocations: 0 / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.3694, allocations: 7.953 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3696, allocations: 65.66 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3696, allocations: 0 / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.3696, allocations: 0 / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3696, allocations: 4 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.3698, allocations: 51.89 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003724/0.3702, allocations: 260.9 kB / 1.06 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.3705, allocations: 66.52 kB / 1.06 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.889e-05/0.3706, allocations: 28.91 kB / 1.06 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.3707, allocations: 85.09 kB / 1.061 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.3708, allocations: 38.56 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3708, allocations: 3.938 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003889/0.3712, allocations: 109.6 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.3712, allocations: 51.41 kB / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.763e-05/0.3713, allocations: 97.86 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.3713, allocations: 29.7 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.106e-05/0.3714, allocations: 88.03 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.3714, allocations: 15.83 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.3714, allocations: 0 / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3715, allocations: 318.8 kB / 1.061 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.623e-05/0.3716, allocations: 23.98 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.27e-05/0.3717, allocations: 27.97 kB / 1.061 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.568e-05/0.3718, allocations: 23.92 kB / 1.061 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3718, allocations: 7.938 kB / 1.061 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002043/0.372, allocations: 85.64 kB / 1.061 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.372, allocations: 8 kB / 1.061 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.372, allocations: 0 / 1.061 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3721, allocations: 0 / 1.061 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.584e-05/0.3721, allocations: 15.98 kB / 1.061 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3722, allocations: 0 / 1.061 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.349e-05/0.3722, allocations: 8 kB / 1.061 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3722, allocations: 0 / 1.061 GB, free: 1.531 MB / 0.8106 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.522e-05/0.3723, allocations: 125.7 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.3723, allocations: 0 / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002511/0.3726, allocations: 97.08 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3726, allocations: 0 / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3726, allocations: 0 / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3726, allocations: 0 / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.3728, allocations: 169.6 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3728, allocations: 0 / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.338e-05/0.3729, allocations: 15.98 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3729, allocations: 4.562 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.3729, allocations: 0 / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3729, allocations: 0 / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3729, allocations: 4 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.3732, allocations: 187.3 kB / 1.062 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-05/0.3732, allocations: 85.05 kB / 1.062 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.3732, allocations: 4 kB / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.913e-05/0.3733, allocations: 4 kB / 1.062 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.3734, allocations: 11.98 kB / 1.062 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.3734, allocations: 0 / 1.062 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.637e-05/0.3734, allocations: 87.27 kB / 1.062 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3734, allocations: 0 / 1.062 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002218/0.3737, allocations: 12 kB / 1.062 GB, free: 0.6406 MB / 0.8106 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 (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.0001535/0.3738, allocations: 99.25 kB / 1.062 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002268/0.3741, allocations: 55.89 kB / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3741, allocations: 0 / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.767e-05/0.3742, allocations: 35.91 kB / 1.062 GB, free: 452 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.3745, allocations: 9.875 kB / 1.062 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/0.3748, allocations: 119.6 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.3751, allocations: 0.6848 MB / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.178e-05/0.3751, allocations: 0 / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.674e-05/0.3752, allocations: 11.44 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3752, allocations: 0 / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.003124/0.3783, allocations: 0.5959 MB / 1.064 GB, free: 14.98 MB / 0.8262 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