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.001763/0.001763, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002077/0.002077, allocations: 220.7 kB / 22.99 MB, free: 4.914 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.528/1.528, allocations: 230.6 MB / 256.8 MB, free: 7.832 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.313/3.313, allocations: 0.4892 GB / 0.7951 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002037/0.002037, allocations: 73.73 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3551, allocations: 176.1 MB / 1.326 GB, free: 1.844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003049/0.3581, allocations: 1.536 MB / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00043/0.3585, allocations: 119.6 kB / 1.328 GB, free: 188 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.3e-05/0.3586, allocations: 0 / 1.328 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.3586, allocations: 0 / 1.328 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.875e-05/0.3587, allocations: 3.938 kB / 1.328 GB, free: 184 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.3589, allocations: 35.91 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.056e-05/0.359, allocations: 27.92 kB / 1.328 GB, free: 120 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3591, allocations: 8 kB / 1.328 GB, free: 112 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.747e-05/0.3592, allocations: 15.97 kB / 1.328 GB, free: 96 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.221e-05/0.3592, allocations: 7.938 kB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.3592, allocations: 7.938 kB / 1.328 GB, free: 80 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.3593, allocations: 11.98 kB / 1.328 GB, free: 68 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.509e-05/0.3593, allocations: 8 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.3593, allocations: 15.86 kB / 1.328 GB, free: 44 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.3595, allocations: 39.83 kB / 1.328 GB, free: 4 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3595, allocations: 0 / 1.328 GB, free: 4 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3595, allocations: 4 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3595, allocations: 0 / 1.328 GB, free: 0 / 1.014 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.0005406/0.36, allocations: 270.3 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.3601, allocations: 12.03 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.3601, allocations: 0.9375 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.3602, allocations: 110.5 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.3603, allocations: 384 / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.3603, allocations: 4.375 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.3605, allocations: 58.22 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.3605, allocations: 4.188 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.3605, allocations: 7.875 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3605, allocations: 0 / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3607, allocations: 43.95 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00038/0.3611, allocations: 200.6 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.3614, allocations: 50.55 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3615, allocations: 40.77 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.925e-05/0.3616, allocations: 8 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.3616, allocations: 34.5 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3616, allocations: 0 / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003968/0.362, allocations: 89.62 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.3621, allocations: 51.41 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3622, allocations: 114 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.3622, allocations: 25.7 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.3623, allocations: 88.14 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.3623, allocations: 3.953 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.3623, allocations: 17.7 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3625, allocations: 318.8 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.3626, allocations: 15.92 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.207e-05/0.3626, allocations: 23.97 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.3628, allocations: 44.83 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3628, allocations: 0 / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002173/0.363, allocations: 81.58 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3631, allocations: 8 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.289e-06/0.3631, allocations: 0 / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3631, allocations: 0 / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.776e-05/0.3631, allocations: 11.98 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.3632, allocations: 0 / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.282e-05/0.3632, allocations: 11.88 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.3632, allocations: 7.984 kB / 1.33 GB, free: 14.1 MB / 1.029 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 8.389e-05/0.3633, allocations: 118.3 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.3634, allocations: 7.891 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.3636, allocations: 81.33 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3636, allocations: 4 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3636, allocations: 0 / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3636, allocations: 0 / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.3638, allocations: 109.3 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3638, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.545e-05/0.3639, allocations: 19.92 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3639, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3639, allocations: 4 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3639, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3639, allocations: 7.875 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.3641, allocations: 167.5 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.042e-05/0.3641, allocations: 7.938 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3642, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.272e-05/0.3642, allocations: 12 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.3643, allocations: 7.984 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3643, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.059e-05/0.3643, allocations: 87.69 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3643, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002335/0.3646, allocations: 8 kB / 1.33 GB, free: 13.4 MB / 1.029 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.0001613/0.3647, allocations: 96.25 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002458/0.365, allocations: 56.02 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.365, allocations: 4 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.452e-05/0.3651, allocations: 19.97 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.3654, allocations: 11.94 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003542/0.3657, allocations: 143.2 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.836e-05/0.3658, allocations: 59.34 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.3658, allocations: 15.44 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3658, allocations: 0 / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of Templates: time 0.002724/0.3685, allocations: 0.7477 MB / 1.332 GB, free: 12.2 MB / 1.029 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/jenkins1/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: 11.30670014815405]