Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.0007683/0.0007683, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001098/0.001867, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007354/0.0007354, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009305/0.001666, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.935/0.935, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08414/1.019, allocations: 53.67 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001333/0.001333, allocations: 245.2 kB / 244.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001131/0.002464, allocations: 471.5 kB / 244.7 MB, free: 14.18 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6911/0.6911, allocations: 138.7 MB / 384.1 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09072/0.7818, allocations: 42.4 MB / 426.5 MB, free: 5.965 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 427.8 MB, free: 4.637 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.286e-05/1.419e-05, allocations: 6.312 kB / 427.8 MB, free: 4.629 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00176/0.001774, allocations: 1.632 MB / 429.4 MB, free: 2.984 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001774/0.001951, allocations: 116.5 kB / 429.5 MB, free: 2.867 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.537e-05/0.001977, allocations: 4 kB / 429.5 MB, free: 2.863 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.049e-05/0.001997, allocations: 7.875 kB / 429.6 MB, free: 2.855 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.932e-05/0.002017, allocations: 0 / 429.6 MB, free: 2.855 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001184/0.002135, allocations: 31.83 kB / 429.6 MB, free: 2.824 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.782e-05/0.002193, allocations: 23.94 kB / 429.6 MB, free: 2.801 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.781e-05/0.002261, allocations: 15.98 kB / 429.6 MB, free: 2.785 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.76e-05/0.002328, allocations: 19.92 kB / 429.6 MB, free: 2.766 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.221e-05/0.00238, allocations: 15.97 kB / 429.7 MB, free: 2.75 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.002397, allocations: 4 kB / 429.7 MB, free: 2.746 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.85e-05/0.002475, allocations: 11.98 kB / 429.7 MB, free: 2.734 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.079e-05/0.002486, allocations: 4 kB / 429.7 MB, free: 2.73 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.458e-05/0.002501, allocations: 7.938 kB / 429.7 MB, free: 2.723 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.729e-05/0.002598, allocations: 27.92 kB / 429.7 MB, free: 2.695 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21e-05/0.00261, allocations: 0 / 429.7 MB, free: 2.695 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.002611, allocations: 0 / 429.7 MB, free: 2.695 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.002623, allocations: 0 / 429.7 MB, free: 2.695 MB / 410.7 MB 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.0003225/0.002946, allocations: 248.6 kB / 430 MB, free: 2.426 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.002976, allocations: 11.98 kB / 430 MB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.529e-05/0.003002, allocations: 4.938 kB / 430 MB, free: 2.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.055e-05/0.003082, allocations: 113.6 kB / 430.1 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.003101, allocations: 4.375 kB / 430.1 MB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.003108, allocations: 384 / 430.1 MB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.003221, allocations: 66.94 kB / 430.2 MB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-06/0.003227, allocations: 192 / 430.2 MB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.003234, allocations: 384 / 430.2 MB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.003238, allocations: 384 / 430.2 MB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.489e-05/0.003263, allocations: 15.92 kB / 430.2 MB, free: 2.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.003466, allocations: 164.2 kB / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.0036, allocations: 30.56 kB / 430.4 MB, free: 1.965 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/0.003616, allocations: 12.92 kB / 430.4 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.004e-05/0.003676, allocations: 7.984 kB / 430.4 MB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.003694, allocations: 30.56 kB / 430.4 MB, free: 1.902 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.003695, allocations: 0 / 430.4 MB, free: 1.902 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 9.787e-05/0.003793, allocations: 49.56 kB / 430.5 MB, free: 1.848 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.003818, allocations: 51.41 kB / 430.5 MB, free: 1.785 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.668e-05/0.003864, allocations: 118.7 kB / 430.6 MB, free: 1.656 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.003874, allocations: 25.7 kB / 430.6 MB, free: 1.625 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.0039, allocations: 84.14 kB / 430.7 MB, free: 1.539 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.003914, allocations: 7.953 kB / 430.7 MB, free: 1.531 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.003937, allocations: 9.719 kB / 430.7 MB, free: 1.516 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.145e-05/0.004009, allocations: 322.8 kB / 431.1 MB, free: 1.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.739e-06/0.004018, allocations: 0 / 431.1 MB, free: 1.191 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.195e-05/0.00403, allocations: 4 kB / 431.1 MB, free: 1.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.488e-05/0.004055, allocations: 17.31 kB / 431.1 MB, free: 1.168 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.004057, allocations: 0 / 431.1 MB, free: 1.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.402e-05/0.004101, allocations: 45.62 kB / 431.1 MB, free: 1.117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.004111, allocations: 8 kB / 431.1 MB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.004115, allocations: 48 / 431.1 MB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.004123, allocations: 7.922 kB / 431.1 MB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.243e-05/0.004176, allocations: 11.98 kB / 431.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-06/0.004178, allocations: 0 / 431.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.004195, allocations: 4 kB / 431.2 MB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.0042, allocations: 4 kB / 431.2 MB, free: 1.082 MB / 410.7 MB 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 4.905e-05/0.004249, allocations: 109.8 kB / 431.3 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.004262, allocations: 4 kB / 431.3 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.004329, allocations: 57.3 kB / 431.3 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.004331, allocations: 3.938 kB / 431.3 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.004333, allocations: 0 / 431.3 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.004336, allocations: 0 / 431.3 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.96e-05/0.004415, allocations: 77.81 kB / 431.4 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.004416, allocations: 0 / 431.4 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.541e-05/0.004442, allocations: 4 kB / 431.4 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.284e-06/0.004449, allocations: 11.94 kB / 431.4 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.00445, allocations: 0 / 431.4 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-06/0.004454, allocations: 0 / 431.4 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.004454, allocations: 4 kB / 431.4 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.004457, allocations: 7.938 kB / 431.4 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.389e-05/0.004521, allocations: 131.5 kB / 431.6 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.315e-06/0.004529, allocations: 4 kB / 431.6 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.267e-05/0.004562, allocations: 11.92 kB / 431.6 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-05/0.004592, allocations: 4 kB / 431.6 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.004595, allocations: 3.938 kB / 431.6 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.002e-05/0.004605, allocations: 12.84 kB / 431.6 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004605, allocations: 0 / 431.6 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001219/0.004727, allocations: 8 kB / 431.6 MB, free: 0.5859 MB / 410.7 MB 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 8.2e-05/0.004809, allocations: 84.42 kB / 431.7 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.247e-05/0.004861, allocations: 16.84 kB / 431.7 MB, free: 488 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.004866, allocations: 4 kB / 431.7 MB, free: 484 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.854e-05/0.004884, allocations: 12.8 kB / 431.7 MB, free: 468 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.005011, allocations: 19.92 kB / 431.7 MB, free: 448 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000297/0.005308, allocations: 119.8 kB / 431.9 MB, free: 304 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.842e-05/0.005336, allocations: 55.34 kB / 431.9 MB, free: 228 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.104e-05/0.005357, allocations: 8 kB / 431.9 MB, free: 220 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.005397, allocations: 55.38 kB / 432 MB, free: 164 kB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/0.005398, allocations: 3.938 kB / 432 MB, free: 160 kB / 410.7 MB Notification: Performance of Templates: time 0.1588/0.1642, allocations: 0.7623 MB / 432.7 MB, free: 2.898 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.259235023520887]