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.001211/0.001211, allocations: 114.4 kB / 16.42 MB, free: 6.449 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.001169/0.001169, allocations: 185.7 kB / 17.35 MB, free: 5.738 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.227/1.227, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 288.9 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8761/0.8761, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001675, allocations: 95.86 kB / 0.6821 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.364, allocations: 86.97 MB / 0.7671 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002307/0.3664, allocations: 1.505 MB / 0.7685 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002977/0.3667, allocations: 128.5 kB / 0.7687 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.3667, allocations: 0 / 0.7687 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.657e-05/0.3668, allocations: 7.875 kB / 0.7687 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.136e-05/0.3668, allocations: 0 / 0.7687 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.367, allocations: 23.91 kB / 0.7687 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.811e-05/0.3671, allocations: 35.86 kB / 0.7687 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.16e-05/0.3672, allocations: 11.98 kB / 0.7687 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.828e-05/0.3672, allocations: 11.98 kB / 0.7687 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.3673, allocations: 19.92 kB / 0.7688 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.3673, allocations: 0 / 0.7688 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.229e-05/0.3673, allocations: 12 kB / 0.7688 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.3674, allocations: 4 kB / 0.7688 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.3674, allocations: 15.92 kB / 0.7688 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 9.421e-05/0.3675, allocations: 35.89 kB / 0.7688 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3675, allocations: 0 / 0.7688 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3675, allocations: 4 kB / 0.7688 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.3675, allocations: 0 / 0.7688 GB, free: 2.215 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.0004099/0.3679, allocations: 347.2 kB / 0.7692 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.368, allocations: 12.03 kB / 0.7692 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.368, allocations: 0.9375 kB / 0.7692 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.3681, allocations: 168.3 kB / 0.7693 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3681, allocations: 4.375 kB / 0.7693 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.3681, allocations: 4.375 kB / 0.7693 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.3683, allocations: 62.22 kB / 0.7694 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.3683, allocations: 192 / 0.7694 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.3683, allocations: 3.938 kB / 0.7694 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3684, allocations: 4 kB / 0.7694 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.3685, allocations: 43.95 kB / 0.7694 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003094/0.3689, allocations: 259.4 kB / 0.7697 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.3692, allocations: 70.41 kB / 0.7698 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.654e-05/0.3693, allocations: 28.89 kB / 0.7698 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-05/0.3694, allocations: 81.09 kB / 0.7699 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.3694, allocations: 34.56 kB / 0.7699 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.3694, allocations: 0 / 0.7699 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003717/0.3698, allocations: 101.6 kB / 0.77 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.3698, allocations: 51.41 kB / 0.77 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.784e-05/0.3699, allocations: 97.86 kB / 0.7701 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.3699, allocations: 25.7 kB / 0.7702 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.37, allocations: 92.11 kB / 0.7703 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.37, allocations: 3.906 kB / 0.7703 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.37, allocations: 17.72 kB / 0.7703 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.3701, allocations: 314.8 kB / 0.7706 GB, free: 200 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.962e-05/0.3702, allocations: 23.97 kB / 0.7706 GB, free: 176 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-05/0.3703, allocations: 19.98 kB / 0.7706 GB, free: 156 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.3705, allocations: 44.75 kB / 0.7707 GB, free: 108 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3705, allocations: 0 / 0.7707 GB, free: 108 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002106/0.3707, allocations: 89.44 kB / 0.7707 GB, free: 12 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.3707, allocations: 4 kB / 0.7707 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.3707, allocations: 0 / 0.7707 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3707, allocations: 0 / 0.7707 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.934e-05/0.3708, allocations: 12.03 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.3708, allocations: 0 / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.508e-05/0.3709, allocations: 7.938 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.3709, 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 7.64e-05/0.371, allocations: 125.7 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.371, allocations: 0 / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002366/0.3713, allocations: 85.08 kB / 0.771 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3713, allocations: 0 / 0.771 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3713, allocations: 3.984 kB / 0.771 GB, free: 15.76 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.3713, allocations: 81.05 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.3714, allocations: 0 / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.3714, allocations: 12 kB / 0.7711 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.3715, allocations: 12.48 kB / 0.7711 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002649/0.3718, allocations: 152.9 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002658/0.372, allocations: 258.7 kB / 0.7715 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.446e-05/0.3721, allocations: 23.97 kB / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.146e-05/0.3722, allocations: 83.28 kB / 0.7716 GB, free: 15.11 MB / 0.545 GB Notification: Performance of Backend: time 1.71e-07/0.3722, allocations: 0 / 0.7716 GB, free: 15.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004106/0.3726, allocations: 104.6 kB / 0.7717 GB, free: 15 MB / 0.545 GB Notification: Performance of SimCode: time 0.0003543/0.373, allocations: 0.5565 MB / 0.7722 GB, free: 14.4 MB / 0.545 GB Notification: Performance of Templates: time 0.002702/0.3757, allocations: 0.8208 MB / 0.773 GB, free: 13.58 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)