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.001233/0.001233, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001268/0.001268, allocations: 173 kB / 23.49 MB, free: 1.059 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 1.037/1.037, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.001697/0.001697, allocations: 246.4 kB / 260.5 MB, free: 12.9 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.7356/0.7356, allocations: 138.4 MB / 455.4 MB, free: 1.547 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 1.724e-06/1.724e-06, allocations: 0 / 0.555 GB, free: 0.875 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.902e-05/3.074e-05, allocations: 2.312 kB / 0.555 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002986/0.003016, allocations: 1.574 MB / 0.5566 GB, free: 15.28 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003953/0.003412, allocations: 120.4 kB / 0.5567 GB, free: 15.16 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.51e-05/0.003457, allocations: 0 / 0.5567 GB, free: 15.16 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/0.003488, allocations: 3.938 kB / 0.5567 GB, free: 15.16 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 5.062e-05/0.003539, allocations: 11.91 kB / 0.5567 GB, free: 15.14 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.003817, allocations: 19.98 kB / 0.5567 GB, free: 15.12 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.885e-05/0.003906, allocations: 27.92 kB / 0.5568 GB, free: 15.1 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.004007, allocations: 12 kB / 0.5568 GB, free: 15.09 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.197e-05/0.004069, allocations: 19.91 kB / 0.5568 GB, free: 15.07 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.004122, allocations: 19.92 kB / 0.5568 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.00414, allocations: 0 / 0.5568 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.132e-05/0.004211, allocations: 15.98 kB / 0.5568 GB, free: 15.03 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.004225, allocations: 0 / 0.5568 GB, free: 15.03 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.96e-05/0.004254, allocations: 15.97 kB / 0.5568 GB, free: 15.02 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.004393, allocations: 31.84 kB / 0.5569 GB, free: 14.98 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.004397, allocations: 0 / 0.5569 GB, free: 14.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.004398, allocations: 0 / 0.5569 GB, free: 14.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.004403, allocations: 0 / 0.5569 GB, free: 14.98 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.0004622/0.004865, allocations: 372.6 kB / 0.5572 GB, free: 14.58 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.00491, allocations: 8.75 kB / 0.5572 GB, free: 14.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.154e-05/0.004962, allocations: 4.938 kB / 0.5572 GB, free: 14.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.005072, allocations: 116.5 kB / 0.5573 GB, free: 14.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.005097, allocations: 4.375 kB / 0.5573 GB, free: 14.43 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.005109, allocations: 384 / 0.5573 GB, free: 14.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.005285, allocations: 62.89 kB / 0.5574 GB, free: 14.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.005295, allocations: 4.172 kB / 0.5574 GB, free: 14.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.005306, allocations: 384 / 0.5574 GB, free: 14.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.005315, allocations: 4.375 kB / 0.5574 GB, free: 14.35 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.682e-05/0.005372, allocations: 19.94 kB / 0.5574 GB, free: 14.33 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000371/0.005743, allocations: 251.8 kB / 0.5577 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.005984, allocations: 59.09 kB / 0.5577 GB, free: 13.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.006015, allocations: 7.688 kB / 0.5577 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.346e-05/0.006109, allocations: 8 kB / 0.5577 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.006138, allocations: 37.39 kB / 0.5578 GB, free: 13.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.00614, allocations: 0 / 0.5578 GB, free: 13.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002073/0.006347, allocations: 49.62 kB / 0.5578 GB, free: 13.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.006384, allocations: 63.39 kB / 0.5579 GB, free: 13.78 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.136e-05/0.006476, allocations: 161.8 kB / 0.558 GB, free: 13.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.006491, allocations: 29.7 kB / 0.5581 GB, free: 13.57 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.006546, allocations: 130.8 kB / 0.5582 GB, free: 13.44 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.006569, allocations: 15.88 kB / 0.5582 GB, free: 13.42 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.006614, allocations: 23.38 kB / 0.5582 GB, free: 13.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.006754, allocations: 492.1 kB / 0.5587 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.578e-05/0.00678, allocations: 4 kB / 0.5587 GB, free: 12.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.947e-05/0.006799, allocations: 3.984 kB / 0.5587 GB, free: 12.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.676e-05/0.006846, allocations: 20.16 kB / 0.5587 GB, free: 12.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.006849, allocations: 0 / 0.5587 GB, free: 12.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.957e-05/0.006948, allocations: 49.69 kB / 0.5588 GB, free: 12.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.006967, allocations: 11.94 kB / 0.5588 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.006972, allocations: 3.938 kB / 0.5588 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.006987, allocations: 4.031 kB / 0.5588 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.303e-05/0.00706, allocations: 7.984 kB / 0.5588 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.007066, allocations: 4 kB / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.007098, allocations: 0 / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.007107, allocations: 4 kB / 0.5588 GB, free: 12.78 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.125e-05/0.007188, allocations: 152.6 kB / 0.559 GB, free: 12.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.245e-05/0.00722, allocations: 15.95 kB / 0.559 GB, free: 12.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.007353, allocations: 53.3 kB / 0.559 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.007356, allocations: 0 / 0.559 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.007359, allocations: 0 / 0.559 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.007362, allocations: 4 kB / 0.559 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.007502, allocations: 116.6 kB / 0.5591 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.007504, allocations: 0 / 0.5591 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.778e-05/0.007562, allocations: 15.92 kB / 0.5592 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.007564, allocations: 0 / 0.5592 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.007572, allocations: 0 / 0.5592 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.007576, allocations: 7.938 kB / 0.5592 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.007578, allocations: 0 / 0.5592 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.007729, allocations: 191.9 kB / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-06/0.007736, allocations: 0 / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.007749, allocations: 0 / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.034e-05/0.007819, allocations: 11.92 kB / 0.5594 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.007873, allocations: 7.984 kB / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.007882, allocations: 8 kB / 0.5594 GB, free: 12.13 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.403e-05/0.007926, allocations: 123.1 kB / 0.5595 GB, free: 12.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 1e-07/0.007926, allocations: 4 kB / 0.5595 GB, free: 12.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000275/0.008201, allocations: 8 kB / 0.5595 GB, free: 12 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.00015/0.008351, allocations: 107.2 kB / 0.5596 GB, free: 11.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.008463, allocations: 19.67 kB / 0.5596 GB, free: 11.86 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.008465, allocations: 0 / 0.5596 GB, free: 11.86 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.938e-05/0.008504, allocations: 19.67 kB / 0.5596 GB, free: 11.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.008786, allocations: 11.94 kB / 0.5597 GB, free: 11.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.009108, allocations: 121.4 kB / 0.5598 GB, free: 11.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.327e-05/0.009151, allocations: 59.28 kB / 0.5598 GB, free: 11.61 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.917e-05/0.009181, allocations: 8 kB / 0.5598 GB, free: 11.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.009217, allocations: 12.5 kB / 0.5598 GB, free: 11.59 MB / 490.7 MB Notification: Performance of SimCode: time 9.12e-07/0.009217, allocations: 0 / 0.5598 GB, free: 11.59 MB / 490.7 MB Notification: Performance of Templates: time 0.003358/0.01258, allocations: 0.7612 MB / 0.5606 GB, free: 10.83 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.780924245947972]