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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7359/0.7359, allocations: 141.8 MB / 149.1 MB, free: 13.17 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 184.1 kB / 181.9 MB, free: 9.883 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 221.3 MB / 436 MB, free: 2.32 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009864/0.0009864, allocations: 91.88 kB / 0.507 GB, free: 11.05 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00191/0.00191, allocations: 283.2 kB / 0.5884 GB, free: 7.891 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.306e-06/8.346e-06, allocations: 0 / 0.6759 GB, free: 14.27 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4557/0.4557, allocations: 82.77 MB / 0.7567 GB, free: 139.2 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.5716, allocations: 108.1 MB / 0.8623 GB, free: 30.93 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.5719, allocations: 74.3 kB / 0.8624 GB, free: 30.86 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.00248/0.5744, allocations: 0.6273 MB / 0.863 GB, free: 30.24 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.5744, allocations: 4 kB / 0.863 GB, free: 30.24 MB / 0.5575 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.0002901/0.5747, allocations: 349.7 kB / 0.8633 GB, free: 29.86 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.5748, allocations: 9.031 kB / 0.8633 GB, free: 29.85 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.5748, allocations: 4.656 kB / 0.8633 GB, free: 29.84 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.14e-05/0.5749, allocations: 167 kB / 0.8635 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.5749, allocations: 0.7812 kB / 0.8635 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.5749, allocations: 0 / 0.8635 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.702e-05/0.575, allocations: 16.59 kB / 0.8635 GB, free: 29.62 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.177e-05/0.5751, allocations: 46.42 kB / 0.8636 GB, free: 29.57 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.5751, allocations: 0 / 0.8636 GB, free: 29.57 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.5751, allocations: 4.562 kB / 0.8636 GB, free: 29.57 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5751, allocations: 0 / 0.8636 GB, free: 29.57 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00039/0.5755, allocations: 265.3 kB / 0.8638 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.5758, allocations: 48.3 kB / 0.8639 GB, free: 29.22 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.5758, allocations: 16.92 kB / 0.8639 GB, free: 29.2 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.5759, allocations: 81.19 kB / 0.8639 GB, free: 29.11 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.552e-05/0.576, allocations: 35.88 kB / 0.864 GB, free: 29.06 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.576, allocations: 0 / 0.864 GB, free: 29.06 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3): time 0.0002024/0.5762, allocations: 46.28 kB / 0.864 GB, free: 29.01 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.5762, allocations: 59.91 kB / 0.8641 GB, free: 28.94 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.5763, allocations: 93.84 kB / 0.8642 GB, free: 28.84 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/0.5763, allocations: 25.7 kB / 0.8642 GB, free: 28.81 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.58e-05/0.5763, allocations: 88.59 kB / 0.8643 GB, free: 28.72 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.5764, allocations: 8.5 kB / 0.8643 GB, free: 28.71 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-06/0.5764, allocations: 0 / 0.8643 GB, free: 28.71 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.7e-05/0.5764, allocations: 319.4 kB / 0.8646 GB, free: 28.39 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.81e-05/0.5764, allocations: 4.5 kB / 0.8646 GB, free: 28.39 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.51e-05/0.5765, allocations: 8.875 kB / 0.8646 GB, free: 28.38 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.794e-05/0.5765, allocations: 11.98 kB / 0.8646 GB, free: 28.37 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5765, allocations: 0.625 kB / 0.8646 GB, free: 28.37 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.465e-05/0.5766, allocations: 41.7 kB / 0.8647 GB, free: 28.32 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.5766, allocations: 15.64 kB / 0.8647 GB, free: 28.31 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.5766, allocations: 0.7188 kB / 0.8647 GB, free: 28.31 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.5767, allocations: 0 / 0.8647 GB, free: 28.31 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.535e-05/0.5768, allocations: 21.27 kB / 0.8647 GB, free: 28.29 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.5768, allocations: 0.6562 kB / 0.8647 GB, free: 28.29 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.55e-05/0.5768, allocations: 10.03 kB / 0.8647 GB, free: 28.29 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-06/0.5769, allocations: 4 kB / 0.8647 GB, free: 28.28 MB / 0.5575 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.5769, allocations: 101.9 kB / 0.8648 GB, free: 28.18 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.5769, allocations: 7.891 kB / 0.8648 GB, free: 28.17 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.5771, allocations: 54.56 kB / 0.8649 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5771, allocations: 4 kB / 0.8649 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.5771, allocations: 5.438 kB / 0.8649 GB, free: 28.1 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.5771, allocations: 0 / 0.8649 GB, free: 28.1 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.863e-05/0.5772, allocations: 138.2 kB / 0.865 GB, free: 27.93 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.5772, allocations: 0 / 0.865 GB, free: 27.93 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.555e-05/0.5773, allocations: 17.33 kB / 0.865 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5773, allocations: 5.156 kB / 0.865 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.5773, allocations: 0 / 0.865 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5773, allocations: 0 / 0.865 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5773, allocations: 5.531 kB / 0.865 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001008/0.5774, allocations: 143.9 kB / 0.8652 GB, free: 27.75 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.122e-05/0.5775, allocations: 86.31 kB / 0.8653 GB, free: 27.65 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.5775, allocations: 4 kB / 0.8653 GB, free: 27.64 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.984e-05/0.5776, allocations: 5.344 kB / 0.8653 GB, free: 27.64 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.5776, allocations: 15.97 kB / 0.8653 GB, free: 27.62 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.5777, allocations: 5.203 kB / 0.8653 GB, free: 27.62 MB / 0.5575 GB Notification: Performance of sort global known variables: time 1.789e-05/0.5777, allocations: 79.28 kB / 0.8654 GB, free: 27.54 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002244/0.5779, allocations: 19.92 kB / 0.8654 GB, free: 27.52 MB / 0.5575 GB 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,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.578, allocations: 103.8 kB / 0.8655 GB, free: 27.42 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 8.262e-05/0.5781, allocations: 24.69 kB / 0.8655 GB, free: 27.39 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.5781, allocations: 3.938 kB / 0.8655 GB, free: 27.39 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.65e-05/0.5782, allocations: 16.64 kB / 0.8655 GB, free: 27.38 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.5784, allocations: 8.469 kB / 0.8655 GB, free: 27.37 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002155/0.5786, allocations: 60.92 kB / 0.8656 GB, free: 27.29 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.5787, allocations: 0.6926 MB / 0.8663 GB, free: 26.57 MB / 0.5575 GB Notification: Performance of SimCode: time 2.61e-07/0.5787, allocations: 0 / 0.8663 GB, free: 26.57 MB / 0.5575 GB Notification: Performance of Templates: time 0.002433/0.5812, allocations: 0.6617 MB / 0.8669 GB, free: 25.92 MB / 0.5575 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)