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.002324/0.002324, allocations: 93.47 kB / 19.44 MB, free: 336 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.002694/0.002694, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.542/1.542, allocations: 177.1 MB / 203.1 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.00314/0.00314, allocations: 235 kB / 259.8 MB, free: 12.86 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 1.219/1.219, allocations: 138.4 MB / 454.7 MB, free: 1.504 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.543e-06/1.543e-06, allocations: 0 / 0.5543 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.024e-05/3.178e-05, allocations: 6.312 kB / 0.5543 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00328/0.003312, allocations: 1.532 MB / 0.5558 GB, free: 15.3 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.000381/0.003693, allocations: 128.4 kB / 0.556 GB, free: 15.18 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.411e-05/0.003737, allocations: 0 / 0.556 GB, free: 15.18 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.296e-05/0.00376, allocations: 0 / 0.556 GB, free: 15.18 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 5.247e-05/0.003813, allocations: 3.938 kB / 0.556 GB, free: 15.17 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.004054, allocations: 19.98 kB / 0.556 GB, free: 15.15 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.157e-05/0.004135, allocations: 35.91 kB / 0.556 GB, free: 15.12 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.092e-05/0.004226, allocations: 7.984 kB / 0.556 GB, free: 15.11 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.247e-05/0.004289, allocations: 19.92 kB / 0.556 GB, free: 15.09 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.596e-05/0.004335, allocations: 7.984 kB / 0.5561 GB, free: 15.08 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.004351, allocations: 4 kB / 0.5561 GB, free: 15.08 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.664e-05/0.004417, allocations: 15.98 kB / 0.5561 GB, free: 15.06 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.004437, allocations: 7.984 kB / 0.5561 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.315e-05/0.00446, allocations: 7.938 kB / 0.5561 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.004597, allocations: 47.8 kB / 0.5561 GB, free: 15 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.0046, allocations: 0 / 0.5561 GB, free: 15 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.004603, allocations: 8 kB / 0.5561 GB, free: 14.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.004607, allocations: 0 / 0.5561 GB, free: 14.99 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.0005341/0.005142, allocations: 364.2 kB / 0.5565 GB, free: 14.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.005178, allocations: 12.75 kB / 0.5565 GB, free: 14.59 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.005225, allocations: 4.922 kB / 0.5565 GB, free: 14.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.005357, allocations: 112.6 kB / 0.5566 GB, free: 14.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.005378, allocations: 384 / 0.5566 GB, free: 14.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.00539, allocations: 4.375 kB / 0.5566 GB, free: 14.44 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001622/0.005552, allocations: 54.23 kB / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.005561, allocations: 192 / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.00557, allocations: 4.375 kB / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.005573, allocations: 384 / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.005716, allocations: 35.8 kB / 0.5567 GB, free: 14.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.00612, allocations: 259.8 kB / 0.557 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.006424, allocations: 63.09 kB / 0.557 GB, free: 13.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.736e-05/0.006502, allocations: 27.73 kB / 0.557 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001/0.006602, allocations: 4 kB / 0.557 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.006639, allocations: 41.33 kB / 0.5571 GB, free: 13.89 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.00664, allocations: 0 / 0.5571 GB, free: 13.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003381/0.006978, allocations: 89.55 kB / 0.5572 GB, free: 13.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.007026, allocations: 55.41 kB / 0.5572 GB, free: 13.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.007147, allocations: 157.9 kB / 0.5574 GB, free: 13.56 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.007171, allocations: 29.7 kB / 0.5574 GB, free: 13.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.917e-05/0.00725, allocations: 130.9 kB / 0.5575 GB, free: 13.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.007269, allocations: 7.953 kB / 0.5575 GB, free: 13.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.551e-05/0.007314, allocations: 19.38 kB / 0.5576 GB, free: 13.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002562/0.007571, allocations: 0.4884 MB / 0.558 GB, free: 12.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.416e-05/0.007635, allocations: 11.98 kB / 0.558 GB, free: 12.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.691e-05/0.007692, allocations: 23.92 kB / 0.5581 GB, free: 12.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.007812, allocations: 35.67 kB / 0.5581 GB, free: 12.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.007814, allocations: 4 kB / 0.5581 GB, free: 12.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001648/0.007978, allocations: 58.14 kB / 0.5582 GB, free: 12.72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.007995, allocations: 10.91 kB / 0.5582 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.007999, allocations: 4 kB / 0.5582 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.008012, allocations: 0 / 0.5582 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.878e-05/0.008081, allocations: 7.984 kB / 0.5582 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.008086, allocations: 0 / 0.5582 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.045e-05/0.008126, allocations: 8 kB / 0.5582 GB, free: 12.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.008132, allocations: 48 / 0.5582 GB, free: 12.69 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 0.0001205/0.008252, allocations: 172.4 kB / 0.5584 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.00828, allocations: 3.953 kB / 0.5584 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.008515, allocations: 77.28 kB / 0.5584 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.008517, allocations: 0 / 0.5584 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.008521, allocations: 0 / 0.5584 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.008523, allocations: 0 / 0.5584 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.00869, allocations: 124.6 kB / 0.5585 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.008691, allocations: 7.938 kB / 0.5586 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.668e-05/0.008747, allocations: 4 kB / 0.5586 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.008756, allocations: 7.984 kB / 0.5586 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.008763, allocations: 0 / 0.5586 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.008767, allocations: 3.938 kB / 0.5586 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.008768, allocations: 0 / 0.5586 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.009032, allocations: 211.9 kB / 0.5588 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-06/0.009038, allocations: 0 / 0.5588 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.009054, allocations: 4 kB / 0.5588 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.699e-05/0.009121, allocations: 3.938 kB / 0.5588 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/0.00918, allocations: 15.98 kB / 0.5588 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.009185, allocations: 0 / 0.5588 GB, free: 12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.34e-05/0.009258, allocations: 127.2 kB / 0.5589 GB, free: 11.87 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009258, allocations: 0 / 0.5589 GB, free: 11.87 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.009486, allocations: 11.95 kB / 0.5589 GB, free: 11.86 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.0001797/0.009666, allocations: 103.2 kB / 0.559 GB, free: 11.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001991/0.009865, allocations: 47.59 kB / 0.5591 GB, free: 11.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.009866, allocations: 0 / 0.5591 GB, free: 11.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.327e-05/0.00995, allocations: 31.67 kB / 0.5591 GB, free: 11.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.01018, allocations: 4 kB / 0.5591 GB, free: 11.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003534/0.01054, allocations: 121.4 kB / 0.5592 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.023e-05/0.01061, allocations: 59.34 kB / 0.5593 GB, free: 11.44 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.297e-05/0.01064, allocations: 7.953 kB / 0.5593 GB, free: 11.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.01068, allocations: 12.5 kB / 0.5593 GB, free: 11.42 MB / 490.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01068, allocations: 4 kB / 0.5593 GB, free: 11.41 MB / 490.7 MB Notification: Performance of Templates: time 0.003821/0.0145, allocations: 0.7834 MB / 0.5601 GB, free: 10.64 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: 5.842206884990446]