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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 114.4 kB / 16.42 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 189.6 kB / 17.35 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002052/0.002052, allocations: 281.9 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8901/0.8901, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 95.86 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3548, allocations: 86.98 MB / 0.7671 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002264/0.3571, allocations: 1.502 MB / 0.7685 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003142/0.3574, allocations: 132.4 kB / 0.7687 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.399e-05/0.3574, allocations: 0 / 0.7687 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.492e-05/0.3575, allocations: 3.938 kB / 0.7687 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.814e-05/0.3575, allocations: 0 / 0.7687 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.3577, allocations: 27.91 kB / 0.7687 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.608e-05/0.3578, allocations: 27.92 kB / 0.7687 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.519e-05/0.3579, allocations: 11.98 kB / 0.7687 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.807e-05/0.3579, allocations: 12 kB / 0.7687 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.358, allocations: 19.91 kB / 0.7688 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.358, allocations: 4 kB / 0.7688 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.3581, allocations: 15.98 kB / 0.7688 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.3581, allocations: 3.938 kB / 0.7688 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.3581, allocations: 15.94 kB / 0.7688 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.3582, allocations: 35.88 kB / 0.7688 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3582, allocations: 4 kB / 0.7688 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3582, allocations: 0 / 0.7688 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.3582, allocations: 0 / 0.7688 GB, free: 2.223 MB / 0.5294 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.0004121/0.3587, allocations: 347.3 kB / 0.7692 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.3587, allocations: 8.031 kB / 0.7692 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3587, allocations: 8.875 kB / 0.7692 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.446e-05/0.3588, allocations: 164.4 kB / 0.7693 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.3589, allocations: 384 / 0.7693 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.3589, allocations: 4.375 kB / 0.7693 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.3591, allocations: 62.17 kB / 0.7694 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.3591, allocations: 192 / 0.7694 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.3591, allocations: 3.938 kB / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3591, allocations: 4 kB / 0.7694 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.3593, allocations: 35.95 kB / 0.7694 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003182/0.3596, allocations: 271.4 kB / 0.7697 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.3599, allocations: 70.39 kB / 0.7698 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.09e-05/0.36, allocations: 24.91 kB / 0.7698 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.3601, allocations: 81.11 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.3602, allocations: 38.55 kB / 0.7699 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3602, allocations: 0 / 0.7699 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.000353/0.3605, allocations: 85.64 kB / 0.77 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.3606, allocations: 59.34 kB / 0.77 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.026e-05/0.3606, allocations: 101.8 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.3607, allocations: 25.7 kB / 0.7702 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.429e-05/0.3607, allocations: 88.14 kB / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.3607, allocations: 3.906 kB / 0.7703 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.3608, allocations: 17.7 kB / 0.7703 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.3609, allocations: 314.8 kB / 0.7706 GB, free: 216 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-05/0.3609, allocations: 23.98 kB / 0.7706 GB, free: 192 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-05/0.361, allocations: 19.91 kB / 0.7706 GB, free: 172 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.3612, allocations: 48.81 kB / 0.7707 GB, free: 120 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3612, allocations: 4 kB / 0.7707 GB, free: 116 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000208/0.3614, allocations: 81.44 kB / 0.7707 GB, free: 28 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.3614, allocations: 8 kB / 0.7707 GB, free: 20 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3615, allocations: 4 kB / 0.7708 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.3615, allocations: 0 / 0.7708 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.707e-05/0.3615, allocations: 11.98 kB / 0.7708 GB, free: 4 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.3616, allocations: 0 / 0.7708 GB, free: 4 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.938e-05/0.3616, allocations: 8.047 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.3616, allocations: 0 / 0.7708 GB, free: 15.99 MB / 0.545 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 6.287e-05/0.3617, allocations: 113.8 kB / 0.7709 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.3617, allocations: 3.938 kB / 0.7709 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.362, allocations: 81.14 kB / 0.771 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.362, allocations: 4 kB / 0.771 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.362, allocations: 0 / 0.771 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/0.362, allocations: 81.05 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.3621, allocations: 4.5 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.427e-05/0.3621, allocations: 11.92 kB / 0.7711 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.3622, allocations: 15.92 kB / 0.7711 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002686/0.3625, allocations: 160.9 kB / 0.7712 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002687/0.3628, allocations: 246.7 kB / 0.7715 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.309e-05/0.3629, allocations: 23.92 kB / 0.7715 GB, free: 15.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.775e-05/0.3629, allocations: 87.27 kB / 0.7716 GB, free: 15.12 MB / 0.545 GB Notification: Performance of Backend: time 1.81e-07/0.3629, allocations: 0 / 0.7716 GB, free: 15.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004143/0.3633, allocations: 109.2 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of SimCode: time 0.0003998/0.3637, allocations: 0.5571 MB / 0.7722 GB, free: 14.4 MB / 0.545 GB Notification: Performance of Templates: time 0.002753/0.3665, allocations: 0.8103 MB / 0.773 GB, free: 13.59 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)