Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.546/1.546, allocations: 289.8 MB / 297 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 173.3 kB / 366.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.1 MB / 0.6256 GB, free: 5.809 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009274/0.0009274, allocations: 89.77 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2759/0.2768, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7055/0.9824, allocations: 116.3 MB / 0.9726 GB, free: 68.2 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1808/1.163, allocations: 138.4 MB / 1.108 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/1.164, allocations: 76.45 kB / 1.108 GB, free: 10.07 MB / 0.7136 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.00293/1.166, allocations: 0.9615 MB / 1.109 GB, free: 9.074 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 8.815e-05/1.167, allocations: 16 kB / 1.109 GB, free: 9.059 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/1.167, allocations: 7.891 kB / 1.109 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/1.167, allocations: 167 kB / 1.109 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/1.167, allocations: 4 kB / 1.109 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/1.167, allocations: 3.938 kB / 1.109 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.31e-05/1.167, allocations: 15.91 kB / 1.109 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.907e-05/1.167, allocations: 42.25 kB / 1.109 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/1.167, allocations: 0 / 1.109 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/1.167, allocations: 4 kB / 1.109 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/1.167, allocations: 0 / 1.109 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/1.167, allocations: 261.4 kB / 1.109 GB, free: 8.48 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/1.168, allocations: 50.5 kB / 1.109 GB, free: 8.422 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/1.168, allocations: 10.05 kB / 1.109 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/1.168, allocations: 89.19 kB / 1.109 GB, free: 8.305 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/1.168, allocations: 32.25 kB / 1.109 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/1.168, allocations: 0 / 1.109 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001999/1.168, allocations: 45.69 kB / 1.11 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/1.168, allocations: 55.41 kB / 1.11 GB, free: 8.148 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.128e-05/1.168, allocations: 100.9 kB / 1.11 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/1.168, allocations: 25.7 kB / 1.11 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/1.168, allocations: 80.14 kB / 1.11 GB, free: 7.93 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/1.168, allocations: 3.906 kB / 1.11 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/1.168, allocations: 0 / 1.11 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.168, allocations: 322.8 kB / 1.11 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.875e-05/1.169, allocations: 7.938 kB / 1.11 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.835e-05/1.169, allocations: 8 kB / 1.11 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.87e-05/1.169, allocations: 11.94 kB / 1.11 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.169, allocations: 4 kB / 1.11 GB, free: 7.57 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.698e-05/1.169, allocations: 49.59 kB / 1.11 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/1.169, allocations: 4 kB / 1.11 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/1.169, allocations: 0 / 1.11 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/1.169, allocations: 4 kB / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.795e-05/1.169, allocations: 13.77 kB / 1.11 GB, free: 7.496 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/1.169, allocations: 0 / 1.11 GB, free: 7.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.267e-05/1.169, allocations: 15.98 kB / 1.11 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/1.169, allocations: 0 / 1.11 GB, free: 7.48 MB / 0.7136 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 7.871e-05/1.169, allocations: 105.7 kB / 1.11 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/1.169, allocations: 3.906 kB / 1.11 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/1.169, allocations: 62.36 kB / 1.11 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/1.169, allocations: 4.781 kB / 1.11 GB, free: 7.289 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.169, allocations: 4 kB / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/1.169, allocations: 4 kB / 1.11 GB, free: 7.281 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/1.169, allocations: 142.1 kB / 1.111 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/1.169, allocations: 0 / 1.111 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.424e-05/1.17, allocations: 16.48 kB / 1.111 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/1.17, allocations: 0 / 1.111 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/1.17, allocations: 0 / 1.111 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.17, allocations: 0.5625 kB / 1.111 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.17, allocations: 4 kB / 1.111 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001445/1.17, allocations: 154 kB / 1.111 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002369/1.17, allocations: 0.5117 MB / 1.111 GB, free: 6.391 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.665e-05/1.17, allocations: 82.05 kB / 1.111 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/1.17, allocations: 0.8125 kB / 1.111 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/1.17, allocations: 12 kB / 1.111 GB, free: 6.281 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/1.17, allocations: 7.984 kB / 1.111 GB, free: 6.273 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/1.17, allocations: 4 kB / 1.111 GB, free: 6.27 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.805e-05/1.17, allocations: 83.2 kB / 1.111 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000825/1.171, allocations: 19.84 kB / 1.111 GB, free: 6.168 MB / 0.7136 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.0001677/1.171, allocations: 111.2 kB / 1.111 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.732e-05/1.171, allocations: 23.92 kB / 1.112 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.171, allocations: 0 / 1.112 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.967e-05/1.171, allocations: 12 kB / 1.112 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/1.172, allocations: 7.406 kB / 1.112 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002319/1.172, allocations: 59.92 kB / 1.112 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/1.172, allocations: 0.6915 MB / 1.112 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of SimCode: time 2.9e-07/1.172, allocations: 5.031 kB / 1.112 GB, free: 5.211 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)