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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8403/0.8403, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 180.9 kB / 182.2 MB, free: 9.449 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 221.5 MB / 436.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009631/0.0009632, allocations: 91.55 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001767/0.001767, allocations: 283.2 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.142e-05/2.135e-05, allocations: 8 kB / 0.6765 GB, free: 12.81 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3568, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.4832, allocations: 108.2 MB / 0.863 GB, free: 3.676 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.4834, allocations: 79.81 kB / 0.8631 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002586/0.486, allocations: 0.9359 MB / 0.864 GB, free: 2.664 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.002e-06/0.486, allocations: 0 / 0.864 GB, free: 2.664 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4861, allocations: 0 / 0.864 GB, free: 2.664 MB / 0.5261 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.0003282/0.4864, allocations: 342.5 kB / 0.8643 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.4864, allocations: 12.02 kB / 0.8643 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.4865, allocations: 0 / 0.8643 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.4866, allocations: 167 kB / 0.8645 GB, free: 2.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.4866, allocations: 3.953 kB / 0.8645 GB, free: 2.066 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.4866, allocations: 4 kB / 0.8645 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.978e-05/0.4867, allocations: 15.94 kB / 0.8645 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.162e-05/0.4868, allocations: 45.69 kB / 0.8646 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.4868, allocations: 0 / 0.8646 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.4868, allocations: 0 / 0.8646 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.4868, allocations: 0 / 0.8646 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003877/0.4872, allocations: 257.5 kB / 0.8648 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.4874, allocations: 54.44 kB / 0.8649 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.4875, allocations: 12.92 kB / 0.8649 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.4876, allocations: 85.19 kB / 0.865 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.4876, allocations: 30.56 kB / 0.865 GB, free: 1.488 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.4876, allocations: 4 kB / 0.865 GB, free: 1.484 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001719/0.4878, allocations: 45.62 kB / 0.865 GB, free: 1.434 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.4879, allocations: 59.41 kB / 0.8651 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.966e-05/0.4879, allocations: 93 kB / 0.8652 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.488, allocations: 25.7 kB / 0.8652 GB, free: 1.234 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.488, allocations: 84.05 kB / 0.8653 GB, free: 1.148 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.488, allocations: 7.906 kB / 0.8653 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.488, allocations: 0 / 0.8653 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.4881, allocations: 318.8 kB / 0.8656 GB, free: 0.8203 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.219e-05/0.4882, allocations: 11.94 kB / 0.8656 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.519e-05/0.4882, allocations: 4.234 kB / 0.8656 GB, free: 0.8047 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.935e-05/0.4882, allocations: 16.08 kB / 0.8656 GB, free: 0.7891 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4882, allocations: 0 / 0.8656 GB, free: 0.7891 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001073/0.4884, allocations: 49.64 kB / 0.8657 GB, free: 0.7344 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4884, allocations: 8 kB / 0.8657 GB, free: 0.7266 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.4884, allocations: 0 / 0.8657 GB, free: 0.7266 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4884, allocations: 0 / 0.8657 GB, free: 0.7266 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.917e-05/0.4885, allocations: 11.98 kB / 0.8657 GB, free: 0.7148 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.4885, allocations: 4 kB / 0.8657 GB, free: 0.7109 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.572e-05/0.4886, allocations: 15.98 kB / 0.8657 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.4886, allocations: 0 / 0.8657 GB, free: 0.6953 MB / 0.5261 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 5.937e-05/0.4887, allocations: 105 kB / 0.8658 GB, free: 0.5859 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.442e-05/0.4887, allocations: 3.953 kB / 0.8658 GB, free: 0.582 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.4889, allocations: 61.73 kB / 0.8659 GB, free: 0.5156 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4889, allocations: 3.938 kB / 0.8659 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4889, allocations: 0 / 0.8659 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4889, allocations: 0 / 0.8659 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.489, allocations: 146.2 kB / 0.866 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4891, allocations: 0 / 0.866 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.614e-05/0.4891, allocations: 11.98 kB / 0.866 GB, free: 328 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4892, allocations: 0 / 0.866 GB, free: 328 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.4892, allocations: 7.953 kB / 0.866 GB, free: 320 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4892, allocations: 0 / 0.866 GB, free: 320 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4892, allocations: 0 / 0.866 GB, free: 320 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.4893, allocations: 151.4 kB / 0.8662 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.889e-05/0.4894, allocations: 81.11 kB / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.4894, allocations: 3.984 kB / 0.8663 GB, free: 48 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.636e-05/0.4895, allocations: 7.953 kB / 0.8663 GB, free: 40 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.4895, allocations: 11.98 kB / 0.8663 GB, free: 28 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.4896, allocations: 0 / 0.8663 GB, free: 28 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.976e-05/0.4896, allocations: 79.28 kB / 0.8664 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4896, allocations: 0 / 0.8664 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002244/0.4899, allocations: 15.94 kB / 0.8664 GB, free: 15.93 MB / 0.5417 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.0001474/0.49, allocations: 115.2 kB / 0.8665 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 7.435e-05/0.4901, allocations: 20 kB / 0.8665 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.4901, allocations: 0 / 0.8665 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.77e-05/0.4901, allocations: 19.92 kB / 0.8665 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.4903, allocations: 1.781 kB / 0.8665 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002174/0.4905, allocations: 71.81 kB / 0.8666 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.4908, allocations: 0.6846 MB / 0.8673 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.4908, allocations: 2.578 kB / 0.8673 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.4908, allocations: 11.44 kB / 0.8673 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of SimCode: time 2.81e-07/0.4908, allocations: 0 / 0.8673 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of Templates: time 0.002204/0.493, allocations: 0.5719 MB / 0.8678 GB, free: 14.39 MB / 0.5417 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)