Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [: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/BuildSysPro 3.5.0/package.mo): time 0.7097/0.7097, allocations: 127.4 MB / 134.6 MB, free: 4.117 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 181.3 kB / 164.4 MB, free: 6.902 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 399.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00091/0.00091, allocations: 92.42 kB / 476.3 MB, free: 8.848 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.29/0.2909, allocations: 82.89 MB / 0.5461 GB, free: 42.67 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.4665, allocations: 76.75 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.9639, allocations: 102 MB / 0.7206 GB, free: 10.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.9643, allocations: 71.95 kB / 0.7207 GB, free: 10.22 MB / 490.7 MB 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.003221/0.9675, allocations: 0.973 MB / 0.7217 GB, free: 9.215 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.9675, allocations: 12 kB / 0.7217 GB, free: 9.203 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.766e-05/0.9676, allocations: 7.891 kB / 0.7217 GB, free: 9.195 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.9678, allocations: 163.1 kB / 0.7218 GB, free: 8.996 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.9678, allocations: 0 / 0.7218 GB, free: 8.996 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.9678, allocations: 0 / 0.7218 GB, free: 8.996 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.762e-05/0.9679, allocations: 16 kB / 0.7219 GB, free: 8.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.13e-05/0.968, allocations: 45.69 kB / 0.7219 GB, free: 8.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.968, allocations: 3.938 kB / 0.7219 GB, free: 8.926 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.968, allocations: 0 / 0.7219 GB, free: 8.926 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.9681, allocations: 7.891 kB / 0.7219 GB, free: 8.918 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.9686, allocations: 257.5 kB / 0.7222 GB, free: 8.629 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.9688, allocations: 42.56 kB / 0.7222 GB, free: 8.578 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.876e-05/0.9689, allocations: 16.83 kB / 0.7222 GB, free: 8.559 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.969, allocations: 85.19 kB / 0.7223 GB, free: 8.457 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.9691, allocations: 38.56 kB / 0.7223 GB, free: 8.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 4.659e-06/0.9691, allocations: 0 / 0.7223 GB, free: 8.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002434/0.9693, allocations: 50.28 kB / 0.7224 GB, free: 8.355 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.9694, allocations: 51.41 kB / 0.7224 GB, free: 8.293 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.9695, allocations: 93 kB / 0.7225 GB, free: 8.195 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.9696, allocations: 25.7 kB / 0.7225 GB, free: 8.164 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.003e-05/0.9696, allocations: 86.12 kB / 0.7226 GB, free: 8.078 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.9697, allocations: 0 / 0.7226 GB, free: 8.078 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.9697, allocations: 4 kB / 0.7226 GB, free: 8.074 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.9698, allocations: 327.5 kB / 0.7229 GB, free: 7.746 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.096e-05/0.9699, allocations: 4 kB / 0.7229 GB, free: 7.742 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.973e-05/0.9699, allocations: 8 kB / 0.723 GB, free: 7.734 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.294e-05/0.97, allocations: 8 kB / 0.723 GB, free: 7.727 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.97, allocations: 0 / 0.723 GB, free: 7.727 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001049/0.9701, allocations: 49.62 kB / 0.723 GB, free: 7.672 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.9701, allocations: 4 kB / 0.723 GB, free: 7.668 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.9701, allocations: 5.562 kB / 0.723 GB, free: 7.664 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.9701, allocations: 3.938 kB / 0.723 GB, free: 7.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.9703, allocations: 15.98 kB / 0.723 GB, free: 7.645 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.9703, allocations: 4 kB / 0.723 GB, free: 7.641 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.813e-05/0.9704, allocations: 15.83 kB / 0.7231 GB, free: 7.625 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.9704, allocations: 4 kB / 0.7231 GB, free: 7.621 MB / 490.7 MB 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 9.458e-05/0.9705, allocations: 105 kB / 0.7232 GB, free: 7.512 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.9705, allocations: 0 / 0.7232 GB, free: 7.512 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001781/0.9707, allocations: 61.27 kB / 0.7232 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.9707, allocations: 0 / 0.7232 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.9707, allocations: 4 kB / 0.7232 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.9707, allocations: 0 / 0.7232 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.9709, allocations: 138.2 kB / 0.7234 GB, free: 7.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.9709, allocations: 3.938 kB / 0.7234 GB, free: 7.266 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.988e-05/0.971, allocations: 23.92 kB / 0.7234 GB, free: 7.246 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.971, allocations: 0 / 0.7234 GB, free: 7.246 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.9711, allocations: 0 / 0.7234 GB, free: 7.246 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.9711, allocations: 3.906 kB / 0.7234 GB, free: 7.242 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.9711, allocations: 0 / 0.7234 GB, free: 7.242 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000178/0.9713, allocations: 146.5 kB / 0.7235 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003233/0.9716, allocations: 0.5311 MB / 0.724 GB, free: 6.535 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.9716, allocations: 81.02 kB / 0.7241 GB, free: 6.438 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.9717, allocations: 0 / 0.7241 GB, free: 6.438 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.9718, allocations: 11.98 kB / 0.7241 GB, free: 6.426 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.38e-05/0.9719, allocations: 4 kB / 0.7241 GB, free: 6.422 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.9719, allocations: 4 kB / 0.7241 GB, free: 6.418 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.161e-05/0.9719, allocations: 83.27 kB / 0.7242 GB, free: 6.336 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008858/0.9728, allocations: 19.94 kB / 0.7242 GB, free: 6.316 MB / 490.7 MB 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.0002665/0.9731, allocations: 107.2 kB / 0.7243 GB, free: 6.199 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.9732, allocations: 19.98 kB / 0.7244 GB, free: 6.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.9732, allocations: 0 / 0.7244 GB, free: 6.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.566e-05/0.9733, allocations: 15.94 kB / 0.7244 GB, free: 6.164 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.9735, allocations: 11.91 kB / 0.7244 GB, free: 6.152 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003183/0.9738, allocations: 63.91 kB / 0.7244 GB, free: 6.066 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.9742, allocations: 0.6876 MB / 0.7251 GB, free: 5.355 MB / 490.7 MB Notification: Performance of SimCode: time 2.6e-07/0.9742, allocations: 0 / 0.7251 GB, free: 5.355 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)