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.0009346/0.0009346, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009734/0.0009734, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.9585/0.9585, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002044/0.002044, allocations: 238.2 kB / 260.2 MB, free: 12.82 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6918/0.6918, allocations: 138.4 MB / 455.2 MB, free: 1.508 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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 2.114e-06/2.114e-06, allocations: 0 / 0.5551 GB, free: 500 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.064e-05, allocations: 2.312 kB / 0.5551 GB, free: 496 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00278/0.002801, allocations: 1.586 MB / 0.5567 GB, free: 14.88 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003954/0.003196, allocations: 120.4 kB / 0.5568 GB, free: 14.76 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.304e-05/0.003239, allocations: 0 / 0.5568 GB, free: 14.76 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.492e-05/0.003274, allocations: 0 / 0.5568 GB, free: 14.76 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 5.749e-05/0.003332, allocations: 7.938 kB / 0.5568 GB, free: 14.75 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.003616, allocations: 19.95 kB / 0.5568 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.73e-05/0.003703, allocations: 31.92 kB / 0.5568 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.82e-05/0.003801, allocations: 4 kB / 0.5568 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.492e-05/0.003866, allocations: 23.92 kB / 0.5569 GB, free: 14.68 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.648e-05/0.003923, allocations: 15.97 kB / 0.5569 GB, free: 14.66 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.003942, allocations: 0 / 0.5569 GB, free: 14.66 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.004018, allocations: 15.98 kB / 0.5569 GB, free: 14.64 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.004033, allocations: 4 kB / 0.5569 GB, free: 14.64 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.004056, allocations: 11.94 kB / 0.5569 GB, free: 14.63 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.004198, allocations: 35.83 kB / 0.5569 GB, free: 14.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.0042, allocations: 0 / 0.5569 GB, free: 14.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.004201, allocations: 0 / 0.5569 GB, free: 14.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.004206, allocations: 0 / 0.5569 GB, free: 14.59 MB / 490.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.000443/0.004649, allocations: 368.6 kB / 0.5573 GB, free: 14.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.004693, allocations: 12.75 kB / 0.5573 GB, free: 14.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.004741, allocations: 4.938 kB / 0.5573 GB, free: 14.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.004844, allocations: 112.6 kB / 0.5574 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.004867, allocations: 4.375 kB / 0.5574 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.004878, allocations: 384 / 0.5574 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.005054, allocations: 62.94 kB / 0.5575 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.005063, allocations: 192 / 0.5575 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.005076, allocations: 4.359 kB / 0.5575 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.005084, allocations: 4.312 kB / 0.5575 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.453e-05/0.005138, allocations: 19.86 kB / 0.5575 GB, free: 13.94 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003796/0.005518, allocations: 259.9 kB / 0.5578 GB, free: 13.65 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.005764, allocations: 47.05 kB / 0.5578 GB, free: 13.59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.8e-05/0.005802, allocations: 19.73 kB / 0.5578 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.65e-05/0.005898, allocations: 7.938 kB / 0.5578 GB, free: 13.56 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.005925, allocations: 33.39 kB / 0.5579 GB, free: 13.52 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.005927, allocations: 0 / 0.5579 GB, free: 13.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002183/0.006145, allocations: 53.62 kB / 0.5579 GB, free: 13.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.006182, allocations: 51.41 kB / 0.558 GB, free: 13.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/0.006275, allocations: 165.9 kB / 0.5581 GB, free: 13.22 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.006289, allocations: 29.7 kB / 0.5581 GB, free: 13.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.557e-05/0.006345, allocations: 130.9 kB / 0.5583 GB, free: 13.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.00637, allocations: 15.88 kB / 0.5583 GB, free: 13.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-05/0.006411, allocations: 23.36 kB / 0.5583 GB, free: 13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.006553, allocations: 496.1 kB / 0.5588 GB, free: 12.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.016e-05/0.006583, allocations: 7.938 kB / 0.5588 GB, free: 12.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.883e-05/0.006602, allocations: 4 kB / 0.5588 GB, free: 12.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.871e-05/0.00665, allocations: 15.67 kB / 0.5588 GB, free: 12.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.006653, allocations: 4 kB / 0.5588 GB, free: 12.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.763e-05/0.00675, allocations: 45.69 kB / 0.5589 GB, free: 12.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.006767, allocations: 11.94 kB / 0.5589 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.006772, allocations: 0 / 0.5589 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.006785, allocations: 0 / 0.5589 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.286e-05/0.006858, allocations: 8 kB / 0.5589 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.006865, allocations: 3.984 kB / 0.5589 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.312e-05/0.006899, allocations: 3.938 kB / 0.5589 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.006906, allocations: 8 kB / 0.5589 GB, free: 12.39 MB / 490.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 8.919e-05/0.006995, allocations: 152.6 kB / 0.559 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.007027, allocations: 7.953 kB / 0.559 GB, free: 12.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.007162, allocations: 53.81 kB / 0.5591 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.007165, allocations: 8 kB / 0.5591 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.007169, allocations: 0 / 0.5591 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.007172, allocations: 48 / 0.5591 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.007315, allocations: 120.6 kB / 0.5592 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.007319, allocations: 7.938 kB / 0.5592 GB, free: 11.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6e-05/0.007379, allocations: 8 kB / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.007381, allocations: 0 / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.007391, allocations: 3.984 kB / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.007394, allocations: 3.938 kB / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.007396, allocations: 0 / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001574/0.007553, allocations: 199.9 kB / 0.5594 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-06/0.007561, allocations: 4 kB / 0.5594 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.007575, allocations: 0 / 0.5594 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.038e-05/0.007645, allocations: 7.938 kB / 0.5594 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.007705, allocations: 7.984 kB / 0.5594 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.00771, allocations: 0 / 0.5594 GB, free: 11.74 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.007765, allocations: 131.2 kB / 0.5596 GB, free: 11.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.007765, allocations: 0 / 0.5596 GB, free: 11.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000284/0.008049, allocations: 8 kB / 0.5596 GB, free: 11.61 MB / 490.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 0.0001596/0.008209, allocations: 102.8 kB / 0.5597 GB, free: 11.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001182/0.008327, allocations: 27.61 kB / 0.5597 GB, free: 11.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.008329, allocations: 0 / 0.5597 GB, free: 11.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.656e-05/0.008366, allocations: 15.69 kB / 0.5597 GB, free: 11.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.008635, allocations: 7.984 kB / 0.5597 GB, free: 11.44 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.008954, allocations: 121.4 kB / 0.5598 GB, free: 11.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.342e-05/0.008997, allocations: 51.36 kB / 0.5599 GB, free: 11.23 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.296e-05/0.00903, allocations: 11.98 kB / 0.5599 GB, free: 11.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.009066, allocations: 16.5 kB / 0.5599 GB, free: 11.2 MB / 490.7 MB Notification: Performance of SimCode: time 7.32e-07/0.009067, allocations: 0 / 0.5599 GB, free: 11.2 MB / 490.7 MB Notification: Performance of Templates: time 0.003426/0.01249, allocations: 0.8184 MB / 0.5607 GB, free: 10.39 MB / 490.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.5939977769739926]