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.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.001293/0.001293, allocations: 102.3 kB / 19.7 MB, free: 2.254 MB / 14.72 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.00141/0.00141, allocations: 217.4 kB / 23.01 MB, free: 4.609 MB / 14.72 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.24/3.24, allocations: 0.505 GB / 0.8108 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 66 kB / 1.178 GB, free: 16.92 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3553, allocations: 180.2 MB / 1.354 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002817/0.3581, allocations: 1.547 MB / 1.356 GB, free: 6.43 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003764/0.3585, allocations: 127.6 kB / 1.356 GB, free: 6.305 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.3585, allocations: 0 / 1.356 GB, free: 6.305 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.3586, allocations: 0 / 1.356 GB, free: 6.305 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.589e-05/0.3586, allocations: 3.938 kB / 1.356 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.3588, allocations: 27.91 kB / 1.356 GB, free: 6.273 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.705e-05/0.3589, allocations: 23.98 kB / 1.356 GB, free: 6.25 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.359, allocations: 11.98 kB / 1.356 GB, free: 6.238 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 5.008e-05/0.3591, allocations: 15.92 kB / 1.356 GB, free: 6.223 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.095e-05/0.3591, allocations: 19.86 kB / 1.356 GB, free: 6.203 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.3592, allocations: 4 kB / 1.356 GB, free: 6.199 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.056e-05/0.3592, allocations: 16 kB / 1.356 GB, free: 6.184 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.722e-05/0.3592, allocations: 7.984 kB / 1.356 GB, free: 6.176 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.3593, allocations: 11.94 kB / 1.356 GB, free: 6.164 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.3594, allocations: 35.83 kB / 1.356 GB, free: 6.129 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3594, allocations: 0 / 1.356 GB, free: 6.129 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3594, allocations: 0 / 1.356 GB, free: 6.129 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.3594, allocations: 0 / 1.356 GB, free: 6.129 MB / 1.045 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.000494/0.3599, allocations: 274.3 kB / 1.356 GB, free: 5.828 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3599, allocations: 8.031 kB / 1.356 GB, free: 5.82 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.36, allocations: 12.89 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.3601, allocations: 106.5 kB / 1.356 GB, free: 5.68 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.3601, allocations: 384 / 1.356 GB, free: 5.68 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.3601, allocations: 4.312 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.3603, allocations: 62.22 kB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3603, allocations: 4.125 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3603, allocations: 3.938 kB / 1.356 GB, free: 5.602 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.3603, allocations: 0 / 1.356 GB, free: 5.602 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.3605, allocations: 43.95 kB / 1.356 GB, free: 5.559 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003901/0.3609, allocations: 228.1 kB / 1.357 GB, free: 5.293 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.3612, allocations: 62.45 kB / 1.357 GB, free: 5.223 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.3613, allocations: 28.84 kB / 1.357 GB, free: 5.191 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-05/0.3614, allocations: 15.98 kB / 1.357 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3615, allocations: 30.56 kB / 1.357 GB, free: 5.137 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3615, allocations: 0 / 1.357 GB, free: 5.137 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003954/0.3619, allocations: 89.59 kB / 1.357 GB, free: 5.043 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.3619, allocations: 55.34 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.91e-05/0.362, allocations: 101.8 kB / 1.357 GB, free: 4.867 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.362, allocations: 29.7 kB / 1.357 GB, free: 4.832 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.362, allocations: 92.12 kB / 1.357 GB, free: 4.738 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.3621, allocations: 3.953 kB / 1.357 GB, free: 4.734 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.925e-05/0.3621, allocations: 17.7 kB / 1.357 GB, free: 4.711 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3622, allocations: 314.8 kB / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.062e-05/0.3623, allocations: 23.91 kB / 1.357 GB, free: 4.371 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.238e-05/0.3624, allocations: 19.98 kB / 1.357 GB, free: 4.352 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.3626, allocations: 48.81 kB / 1.357 GB, free: 4.301 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3626, allocations: 3.938 kB / 1.358 GB, free: 4.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002169/0.3628, allocations: 73.66 kB / 1.358 GB, free: 4.219 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.3628, allocations: 4 kB / 1.358 GB, free: 4.215 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3628, allocations: 0 / 1.358 GB, free: 4.215 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3628, allocations: 0 / 1.358 GB, free: 4.215 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.949e-05/0.3629, allocations: 19.98 kB / 1.358 GB, free: 4.195 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3629, allocations: 3.938 kB / 1.358 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.805e-05/0.363, allocations: 11.92 kB / 1.358 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.363, allocations: 0 / 1.358 GB, free: 4.18 MB / 1.045 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.537e-05/0.3631, allocations: 117.7 kB / 1.358 GB, free: 4.055 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.3631, allocations: 3.953 kB / 1.358 GB, free: 4.051 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.3634, allocations: 89.33 kB / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3634, allocations: 0 / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3634, allocations: 0 / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3634, allocations: 0 / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3636, allocations: 136.7 kB / 1.358 GB, free: 3.781 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3636, allocations: 0 / 1.358 GB, free: 3.781 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.708e-05/0.3637, allocations: 11.98 kB / 1.358 GB, free: 3.77 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3637, allocations: 0.5625 kB / 1.358 GB, free: 3.77 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.3637, allocations: 3.938 kB / 1.358 GB, free: 3.766 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3637, allocations: 3.938 kB / 1.358 GB, free: 3.762 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3637, allocations: 0 / 1.358 GB, free: 3.762 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.3639, allocations: 183.4 kB / 1.358 GB, free: 3.566 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.218e-05/0.364, allocations: 11.95 kB / 1.358 GB, free: 3.555 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.364, allocations: 3.938 kB / 1.358 GB, free: 3.551 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.3641, allocations: 7.984 kB / 1.358 GB, free: 3.543 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.3641, allocations: 7.984 kB / 1.358 GB, free: 3.535 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.3641, allocations: 8 kB / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.987e-05/0.3642, allocations: 75.28 kB / 1.358 GB, free: 3.453 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3642, allocations: 0 / 1.358 GB, free: 3.453 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002273/0.3644, allocations: 8 kB / 1.358 GB, free: 3.445 MB / 1.045 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.0001699/0.3646, allocations: 99.25 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002338/0.3648, allocations: 51.88 kB / 1.358 GB, free: 3.285 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3648, allocations: 0 / 1.358 GB, free: 3.285 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.455e-05/0.3649, allocations: 23.98 kB / 1.358 GB, free: 3.262 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.3652, allocations: 7.938 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003627/0.3655, allocations: 143.2 kB / 1.359 GB, free: 3.082 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.3658, allocations: 0.6768 MB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.199e-05/0.3659, allocations: 11.42 kB / 1.359 GB, free: 2.367 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.3659, allocations: 0 / 1.359 GB, free: 2.367 MB / 1.045 GB Notification: Performance of Templates: time 0.002427/0.3683, allocations: 0.7447 MB / 1.36 GB, free: 1.629 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.068347461987287]