Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 84.39 kB / 20.23 MB, free: 4.172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00267/0.00267, allocations: 161.3 kB / 23.55 MB, free: 0.8594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.837/2.837, allocations: 377.8 MB / 0.6232 GB, free: 8.52 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.833e-05/3.026e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.086 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.004029/0.004059, allocations: 1.549 MB / 0.8123 GB, free: 0.543 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.000445/0.004504, allocations: 120.9 kB / 0.8124 GB, free: 436 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.963e-05/0.004543, allocations: 0 / 0.8124 GB, free: 436 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.004579, allocations: 5.469 kB / 0.8124 GB, free: 432 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.592e-05/0.004635, allocations: 4 kB / 0.8124 GB, free: 428 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.004928, allocations: 27.84 kB / 0.8125 GB, free: 400 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 9.515e-05/0.005023, allocations: 27.92 kB / 0.8125 GB, free: 372 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 9.776e-05/0.005121, allocations: 9.203 kB / 0.8125 GB, free: 364 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 7.446e-05/0.005195, allocations: 19.97 kB / 0.8125 GB, free: 344 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.005253, allocations: 15.98 kB / 0.8125 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.00527, allocations: 0.6875 kB / 0.8125 GB, free: 328 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.005342, allocations: 11.94 kB / 0.8125 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.593e-05/0.005368, allocations: 12.73 kB / 0.8126 GB, free: 304 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 3.607e-05/0.005404, allocations: 11.98 kB / 0.8126 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.005553, allocations: 32.86 kB / 0.8126 GB, free: 260 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.005556, allocations: 0 / 0.8126 GB, free: 260 kB / 0.7605 GB Notification: Performance of FrontEnd: time 8.91e-07/0.005557, allocations: 0 / 0.8126 GB, free: 260 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.005561, allocations: 0.875 kB / 0.8126 GB, free: 260 kB / 0.7605 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.0006273/0.006188, allocations: 267.6 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.006232, allocations: 11.97 kB / 0.8129 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.006293, allocations: 12.83 kB / 0.8129 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.006438, allocations: 107.4 kB / 0.813 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.00646, allocations: 4.375 kB / 0.813 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.006472, allocations: 384 / 0.813 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.00674, allocations: 58.23 kB / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.006749, allocations: 1.5 kB / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.00676, allocations: 384 / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.006764, allocations: 384 / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.007042, allocations: 49.05 kB / 0.8131 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/0.007505, allocations: 208.5 kB / 0.8133 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000453/0.007958, allocations: 60.41 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.008103, allocations: 24.91 kB / 0.8134 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.008207, allocations: 9.516 kB / 0.8134 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.008242, allocations: 30.56 kB / 0.8134 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.008243, allocations: 0 / 0.8134 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0005807/0.008824, allocations: 102.9 kB / 0.8135 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.008884, allocations: 55.41 kB / 0.8136 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.009006, allocations: 98.05 kB / 0.8137 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.009034, allocations: 26.23 kB / 0.8137 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.00912, allocations: 84.75 kB / 0.8138 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.00915, allocations: 15.89 kB / 0.8138 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.009207, allocations: 15.69 kB / 0.8138 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002103/0.009417, allocations: 314.8 kB / 0.8141 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.009564, allocations: 19.97 kB / 0.8141 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.009682, allocations: 16.77 kB / 0.8141 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.009946, allocations: 57.55 kB / 0.8142 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.009948, allocations: 1.219 kB / 0.8142 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003348/0.01028, allocations: 73.61 kB / 0.8143 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.01031, allocations: 8.562 kB / 0.8143 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.01031, allocations: 1.125 kB / 0.8143 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.01033, allocations: 4 kB / 0.8143 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.01044, allocations: 15.98 kB / 0.8143 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.01045, allocations: 0.875 kB / 0.8143 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.502e-05/0.01054, allocations: 11.92 kB / 0.8143 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.01054, allocations: 0.5938 kB / 0.8143 GB, free: 14.36 MB / 0.7761 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.0001204/0.01066, allocations: 110.7 kB / 0.8144 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.01071, allocations: 4 kB / 0.8144 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003722/0.01108, allocations: 91.48 kB / 0.8145 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01109, allocations: 0 / 0.8145 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01109, allocations: 0 / 0.8145 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.0111, allocations: 3.984 kB / 0.8145 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.01133, allocations: 106.2 kB / 0.8146 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.01133, allocations: 0 / 0.8146 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.01144, allocations: 14.2 kB / 0.8146 GB, free: 14 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01145, allocations: 0 / 0.8146 GB, free: 14 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.01145, allocations: 0 / 0.8146 GB, free: 14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.01146, allocations: 7.922 kB / 0.8146 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01146, allocations: 0 / 0.8146 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.01187, allocations: 175.9 kB / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-06/0.01187, allocations: 3.438 kB / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.01189, allocations: 0 / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.01203, allocations: 11.92 kB / 0.8148 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.875e-05/0.0121, allocations: 11.98 kB / 0.8148 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.01211, allocations: 0 / 0.8148 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.602e-05/0.01217, allocations: 79.28 kB / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01217, allocations: 0 / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004378/0.01261, allocations: 12 kB / 0.8149 GB, free: 13.69 MB / 0.7761 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.0001927/0.0128, allocations: 99.77 kB / 0.815 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.01311, allocations: 41.3 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01312, allocations: 4.562 kB / 0.815 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.01327, allocations: 24.73 kB / 0.8151 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.01372, allocations: 12.61 kB / 0.8151 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.01414, allocations: 125.7 kB / 0.8152 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.448e-05/0.01423, allocations: 59.34 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.444e-05/0.01428, allocations: 6.156 kB / 0.8153 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.152e-05/0.01433, allocations: 20.44 kB / 0.8153 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of SimCode: time 6.91e-07/0.01433, allocations: 0 / 0.8153 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of Templates: time 0.004483/0.01881, allocations: 0.7606 MB / 0.816 GB, free: 12.52 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.701828561956063]