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.001695/0.001695, allocations: 78.72 kB / 19.18 MB, free: 2.527 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.002109/0.002109, allocations: 167.3 kB / 22.46 MB, free: 5.363 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.464/1.464, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 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.849/2.849, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] 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.583e-06/1.583e-06, allocations: 0 / 0.9814 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.566e-05/2.724e-05, allocations: 5.656 kB / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002815/0.002842, allocations: 1.554 MB / 0.9829 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003595/0.003201, allocations: 127.5 kB / 0.9831 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.709e-05/0.003238, allocations: 0 / 0.9831 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.689e-05/0.003265, allocations: 0 / 0.9831 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.889e-05/0.003304, allocations: 7.875 kB / 0.9831 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.003541, allocations: 27.91 kB / 0.9831 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.601e-05/0.003617, allocations: 27.92 kB / 0.9831 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.003724, allocations: 11.98 kB / 0.9831 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.773e-05/0.003772, allocations: 8 kB / 0.9831 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.106e-05/0.003823, allocations: 19.91 kB / 0.9832 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.003841, allocations: 8 kB / 0.9832 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.048e-05/0.003901, allocations: 11.98 kB / 0.9832 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.003917, allocations: 7.938 kB / 0.9832 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.475e-05/0.003941, allocations: 11.98 kB / 0.9832 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.004082, allocations: 43.81 kB / 0.9832 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.004084, allocations: 0 / 0.9832 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of FrontEnd: time 7.81e-07/0.004085, allocations: 0 / 0.9832 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.004092, allocations: 0 / 0.9832 GB, free: 10.11 MB / 0.9356 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.000473/0.004565, allocations: 266.3 kB / 0.9835 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.004601, allocations: 12.03 kB / 0.9835 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.004634, allocations: 8.891 kB / 0.9835 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.004759, allocations: 105.8 kB / 0.9836 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.004776, allocations: 384 / 0.9836 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.004794, allocations: 8.375 kB / 0.9836 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.004999, allocations: 54.22 kB / 0.9837 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.005007, allocations: 192 / 0.9837 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.005017, allocations: 384 / 0.9837 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.005021, allocations: 4.375 kB / 0.9837 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.005223, allocations: 51.83 kB / 0.9837 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.005577, allocations: 204.6 kB / 0.9839 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.005906, allocations: 54.53 kB / 0.984 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.006009, allocations: 24.91 kB / 0.984 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-05/0.006088, allocations: 7.984 kB / 0.984 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.006118, allocations: 38.5 kB / 0.984 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.006119, allocations: 0 / 0.984 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004012/0.00652, allocations: 97.53 kB / 0.9841 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.006568, allocations: 55.41 kB / 0.9842 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.277e-05/0.006651, allocations: 101.8 kB / 0.9843 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.00667, allocations: 25.7 kB / 0.9843 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.84e-05/0.006729, allocations: 80.14 kB / 0.9844 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.00675, allocations: 15.94 kB / 0.9844 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-05/0.006791, allocations: 17.7 kB / 0.9844 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.006934, allocations: 318.8 kB / 0.9847 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.007036, allocations: 23.97 kB / 0.9847 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.706e-05/0.007123, allocations: 19.98 kB / 0.9848 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.007318, allocations: 53.22 kB / 0.9848 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.007319, allocations: 0 / 0.9848 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002285/0.007548, allocations: 69.64 kB / 0.9849 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.007563, allocations: 11.94 kB / 0.9849 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.007567, allocations: 0 / 0.9849 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.00758, allocations: 4 kB / 0.9849 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.686e-05/0.007666, allocations: 15.98 kB / 0.9849 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.007671, allocations: 0 / 0.9849 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.485e-05/0.007746, allocations: 11.94 kB / 0.9849 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.007751, allocations: 3.938 kB / 0.9849 GB, free: 8.203 MB / 0.9356 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.673e-05/0.007848, allocations: 109.8 kB / 0.985 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.007873, allocations: 0 / 0.985 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.008154, allocations: 97.2 kB / 0.9851 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.008156, allocations: 0 / 0.9851 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.00816, allocations: 0 / 0.9851 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.008162, allocations: 0 / 0.9851 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.008316, allocations: 109.3 kB / 0.9852 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.008317, allocations: 0 / 0.9852 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.878e-05/0.008396, allocations: 11.98 kB / 0.9852 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.008397, allocations: 0 / 0.9852 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.008404, allocations: 0 / 0.9852 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.008408, allocations: 3.938 kB / 0.9852 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.008409, allocations: 0 / 0.9852 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.008698, allocations: 175.4 kB / 0.9854 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.00871, allocations: 7.953 kB / 0.9854 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.008724, allocations: 0 / 0.9854 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.008832, allocations: 11.92 kB / 0.9854 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.008885, allocations: 7.984 kB / 0.9854 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.008891, allocations: 4 kB / 0.9854 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.19e-05/0.008933, allocations: 75.28 kB / 0.9855 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.008933, allocations: 4 kB / 0.9855 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002274/0.009161, allocations: 8 kB / 0.9855 GB, free: 7.527 MB / 0.9356 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.0001729/0.009333, allocations: 111.1 kB / 0.9856 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.009579, allocations: 47.94 kB / 0.9857 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.009581, allocations: 0 / 0.9857 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.009689, allocations: 27.92 kB / 0.9857 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.009957, allocations: 2.344 kB / 0.9857 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/0.01026, allocations: 120.9 kB / 0.9858 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.219e-05/0.01032, allocations: 55.36 kB / 0.9859 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.016e-05/0.01035, allocations: 12.45 kB / 0.9859 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.1e-05/0.01038, allocations: 12.5 kB / 0.9859 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of SimCode: time 4.21e-07/0.01038, allocations: 0 / 0.9859 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of Templates: time 0.003292/0.01368, allocations: 0.7421 MB / 0.9866 GB, free: 6.359 MB / 0.9356 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.909356888383627]