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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.984/0.984, allocations: 141.8 MB / 149.3 MB, free: 9.223 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.001372/0.001372, allocations: 184.8 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 22.89/22.89, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.001225/0.001225, allocations: 93.73 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002136/0.002137, allocations: 276.6 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.718e-05/2.72e-05, allocations: 4 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5741/0.5742, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.7687, allocations: 108.2 MB / 0.8631 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003875/0.7692, allocations: 67.97 kB / 0.8632 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003898/0.7731, allocations: 0.9394 MB / 0.8641 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.465e-06/0.7731, allocations: 0 / 0.8641 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.545e-05/0.7732, allocations: 4 kB / 0.8641 GB, free: 2.586 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.0006367/0.7738, allocations: 338.5 kB / 0.8644 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.359e-05/0.7739, allocations: 15.97 kB / 0.8644 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.774, allocations: 7.844 kB / 0.8644 GB, free: 2.188 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002279/0.7742, allocations: 167 kB / 0.8646 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.7743, allocations: 3.953 kB / 0.8646 GB, free: 1.98 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.7743, allocations: 4 kB / 0.8646 GB, free: 1.977 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001018/0.7744, allocations: 23.98 kB / 0.8646 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.7745, allocations: 41.69 kB / 0.8647 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.7745, allocations: 0 / 0.8647 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.7746, allocations: 0 / 0.8647 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.7746, allocations: 0 / 0.8647 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00065/0.7752, allocations: 269.4 kB / 0.8649 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/0.7755, allocations: 42.55 kB / 0.865 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.145e-05/0.7756, allocations: 12.92 kB / 0.865 GB, free: 1.539 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001813/0.7758, allocations: 81.11 kB / 0.8651 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.7758, allocations: 30.56 kB / 0.8651 GB, free: 1.402 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 2.505e-06/0.7758, allocations: 4 kB / 0.8651 GB, free: 1.398 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.000324/0.7762, allocations: 53.77 kB / 0.8652 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.7762, allocations: 55.34 kB / 0.8652 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.7764, allocations: 92.98 kB / 0.8653 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.7764, allocations: 25.7 kB / 0.8653 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.7765, allocations: 92.05 kB / 0.8654 GB, free: 1.051 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.7766, allocations: 3.906 kB / 0.8654 GB, free: 1.047 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-06/0.7766, allocations: 0 / 0.8654 GB, free: 1.047 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002233/0.7768, allocations: 310.8 kB / 0.8657 GB, free: 0.7344 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.282e-05/0.7768, allocations: 15.94 kB / 0.8657 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.089e-05/0.7769, allocations: 11.98 kB / 0.8657 GB, free: 0.707 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.916e-05/0.777, allocations: 8 kB / 0.8657 GB, free: 0.6992 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.777, allocations: 0 / 0.8657 GB, free: 0.6992 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001411/0.7771, allocations: 49.64 kB / 0.8658 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.7772, allocations: 4 kB / 0.8658 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.7772, allocations: 0 / 0.8658 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.7772, allocations: 0 / 0.8658 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.7773, allocations: 19.98 kB / 0.8658 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.7774, allocations: 4 kB / 0.8658 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.321e-05/0.7774, allocations: 15.92 kB / 0.8658 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.7774, allocations: 0 / 0.8658 GB, free: 0.6016 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 0.0001223/0.7776, allocations: 101 kB / 0.8659 GB, free: 0.4961 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001753/0.7778, allocations: 53.64 kB / 0.866 GB, free: 448 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.7778, allocations: 3.906 kB / 0.866 GB, free: 444 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002068/0.778, allocations: 61.8 kB / 0.866 GB, free: 376 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.778, allocations: 0 / 0.866 GB, free: 376 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.778, allocations: 0 / 0.866 GB, free: 376 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.778, allocations: 3.938 kB / 0.866 GB, free: 372 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.7783, allocations: 146.1 kB / 0.8662 GB, free: 188 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.7783, allocations: 0 / 0.8662 GB, free: 188 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.83e-05/0.7784, allocations: 11.98 kB / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.7784, allocations: 0 / 0.8662 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.7784, allocations: 4 kB / 0.8662 GB, free: 172 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.7784, allocations: 3.984 kB / 0.8662 GB, free: 168 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.7784, allocations: 4 kB / 0.8662 GB, free: 164 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.7787, allocations: 139.5 kB / 0.8663 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.7788, allocations: 85.06 kB / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.7788, allocations: 0 / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.7789, allocations: 7.984 kB / 0.8664 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.779, allocations: 8.453 kB / 0.8664 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.779, allocations: 3.984 kB / 0.8664 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.701e-05/0.7791, allocations: 91.27 kB / 0.8665 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7791, allocations: 0 / 0.8665 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002707/0.7794, allocations: 11.94 kB / 0.8665 GB, free: 15.79 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.0009944/0.7804, allocations: 0.6967 MB / 0.8672 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000141/0.7806, allocations: 20 kB / 0.8672 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7806, allocations: 4 kB / 0.8672 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.7806, allocations: 11.94 kB / 0.8673 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.7809, allocations: 3.984 kB / 0.8673 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005416/0.7814, allocations: 99.61 kB / 0.8673 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000665/0.7821, allocations: 0.6807 MB / 0.868 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.682e-05/0.7822, allocations: 4 kB / 0.868 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.228e-05/0.7822, allocations: 15.42 kB / 0.868 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of SimCode: time 5.81e-07/0.7822, allocations: 0 / 0.868 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.8128, allocations: 0.9772 MB / 0.869 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003851/0.8133, allocations: 135.9 kB / 0.8691 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.655, allocations: 3.938 kB / 0.8691 GB, free: 13 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)