Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_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.001164/0.001164, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001309/0.00131, allocations: 198.2 kB / 16.14 MB, free: 6.641 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.499/1.499, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.89 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9513/0.9527, allocations: 140.4 MB / 0.9489 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002458/0.9552, allocations: 1.58 MB / 0.9505 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003491/0.9555, allocations: 117.4 kB / 0.9506 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.029e-05/0.9556, allocations: 0 / 0.9506 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.531e-05/0.9556, allocations: 5.078 kB / 0.9506 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.814e-05/0.9557, allocations: 0 / 0.9506 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.9559, allocations: 25.77 kB / 0.9506 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.791e-05/0.9559, allocations: 19.25 kB / 0.9506 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.508e-05/0.956, allocations: 19.91 kB / 0.9506 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.106e-05/0.9561, allocations: 8.406 kB / 0.9506 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.645e-05/0.9561, allocations: 16.92 kB / 0.9507 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.9562, allocations: 1.469 kB / 0.9507 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.443e-05/0.9562, allocations: 17.83 kB / 0.9507 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.9562, allocations: 1.188 kB / 0.9507 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.9563, allocations: 14.58 kB / 0.9507 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.9564, allocations: 32.67 kB / 0.9507 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.9564, allocations: 0 / 0.9507 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9564, allocations: 5.094 kB / 0.9507 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.9564, allocations: 0 / 0.9507 GB, free: 7.797 MB / 0.7169 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.0003901/0.9568, allocations: 341.2 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.9568, allocations: 8.938 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/0.9569, allocations: 7.484 kB / 0.9511 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.046e-05/0.957, allocations: 169.6 kB / 0.9512 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.957, allocations: 5.562 kB / 0.9512 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.957, allocations: 1.5 kB / 0.9512 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.9572, allocations: 56.61 kB / 0.9513 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.9572, allocations: 1.25 kB / 0.9513 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.9572, allocations: 7.922 kB / 0.9513 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.9572, allocations: 1.156 kB / 0.9513 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.9574, allocations: 46.08 kB / 0.9513 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003038/0.9577, allocations: 259.1 kB / 0.9516 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.958, allocations: 64.75 kB / 0.9517 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.9582, allocations: 30.7 kB / 0.9517 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.572e-05/0.9583, allocations: 83.91 kB / 0.9518 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.9583, allocations: 36.09 kB / 0.9518 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9583, allocations: 3.938 kB / 0.9518 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003599/0.9587, allocations: 93.45 kB / 0.9519 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.9587, allocations: 55.39 kB / 0.9519 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.623e-05/0.9587, allocations: 99.73 kB / 0.952 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.9588, allocations: 25.7 kB / 0.9521 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.314e-05/0.9588, allocations: 89.3 kB / 0.9521 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.9588, allocations: 9.266 kB / 0.9522 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.9588, allocations: 25.23 kB / 0.9522 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.9589, allocations: 312.1 kB / 0.9525 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.005e-05/0.959, allocations: 22.66 kB / 0.9525 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.011e-05/0.9591, allocations: 18.83 kB / 0.9525 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.9592, allocations: 45.97 kB / 0.9526 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9592, allocations: 7.938 kB / 0.9526 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001965/0.9594, allocations: 73.03 kB / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.9595, allocations: 4.906 kB / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.9595, allocations: 0 / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.9595, allocations: 0.7188 kB / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.924e-05/0.9596, allocations: 15.92 kB / 0.9527 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.9596, allocations: 0 / 0.9527 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.557e-05/0.9596, allocations: 8.141 kB / 0.9527 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.9597, allocations: 5.438 kB / 0.9527 GB, free: 5.816 MB / 0.7169 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 5.174e-05/0.9597, allocations: 119.1 kB / 0.9528 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.9597, allocations: 1.438 kB / 0.9528 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002346/0.96, allocations: 78.55 kB / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.96, allocations: 2.125 kB / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.96, allocations: 0 / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.96, allocations: 0 / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.9601, allocations: 173 kB / 0.953 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.9601, allocations: 0 / 0.953 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.333e-05/0.9602, allocations: 10.61 kB / 0.953 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.9602, allocations: 1.125 kB / 0.953 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.9602, allocations: 1 kB / 0.953 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.9602, allocations: 0 / 0.953 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.9602, allocations: 3.984 kB / 0.953 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.9605, allocations: 183.2 kB / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.9605, allocations: 82.05 kB / 0.9533 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.9605, allocations: 1.062 kB / 0.9533 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.108e-05/0.9606, allocations: 11.14 kB / 0.9533 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/0.9606, allocations: 6.859 kB / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.9607, allocations: 2.094 kB / 0.9533 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.901e-05/0.9607, allocations: 81.44 kB / 0.9534 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9607, allocations: 0.9688 kB / 0.9534 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002194/0.9609, allocations: 14.34 kB / 0.9534 GB, free: 5.051 MB / 0.7169 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.0001137/0.961, allocations: 102.9 kB / 0.9535 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002173/0.9612, allocations: 49.5 kB / 0.9536 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.9613, allocations: 0 / 0.9536 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.433e-05/0.9614, allocations: 23.23 kB / 0.9536 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.9616, allocations: 10.06 kB / 0.9536 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000259/0.9619, allocations: 118.2 kB / 0.9537 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.962, allocations: 0.6825 MB / 0.9544 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.086e-05/0.9621, allocations: 2.281 kB / 0.9544 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.673e-05/0.9621, allocations: 9.438 kB / 0.9544 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9621, allocations: 0 / 0.9544 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of Templates: time 0.002546/0.9646, allocations: 0.6288 MB / 0.955 GB, free: 3.762 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches