Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.497/2.497, allocations: 284.8 MB / 292.1 MB, free: 10.79 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.001701/0.001701, allocations: 191.3 kB / 360.3 MB, free: 7.508 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.921/1.921, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.00125/0.00125, allocations: 95.25 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2792/0.2805, allocations: 121.4 MB / 0.8502 GB, free: 3.926 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6519/0.9324, allocations: 115.2 MB / 0.9627 GB, free: 78.44 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2176/1.15, allocations: 137.3 MB / 1.097 GB, free: 3.605 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/1.15, allocations: 69.94 kB / 1.097 GB, free: 3.539 MB / 0.698 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.005136/1.156, allocations: 0.9652 MB / 1.098 GB, free: 2.562 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.717e-05/1.156, allocations: 11.81 kB / 1.098 GB, free: 2.555 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/1.156, allocations: 12.45 kB / 1.098 GB, free: 2.543 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/1.156, allocations: 163.1 kB / 1.098 GB, free: 2.344 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.117e-05/1.156, allocations: 4 kB / 1.098 GB, free: 2.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/1.156, allocations: 1.594 kB / 1.098 GB, free: 2.34 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001446/1.156, allocations: 16.98 kB / 1.098 GB, free: 2.324 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001361/1.157, allocations: 47.44 kB / 1.098 GB, free: 2.273 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/1.157, allocations: 3.938 kB / 1.098 GB, free: 2.27 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/1.157, allocations: 0 / 1.098 GB, free: 2.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/1.157, allocations: 4.719 kB / 1.098 GB, free: 2.266 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006545/1.157, allocations: 261.4 kB / 1.098 GB, free: 1.977 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/1.158, allocations: 39.06 kB / 1.098 GB, free: 1.93 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.97e-05/1.158, allocations: 14.23 kB / 1.098 GB, free: 1.914 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000163/1.158, allocations: 81.77 kB / 1.098 GB, free: 1.816 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/1.158, allocations: 35.14 kB / 1.098 GB, free: 1.773 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 6.593e-06/1.158, allocations: 1.156 kB / 1.098 GB, free: 1.773 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.000244/1.158, allocations: 45.64 kB / 1.099 GB, free: 1.723 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/1.158, allocations: 52.34 kB / 1.099 GB, free: 1.66 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.502e-05/1.158, allocations: 101.5 kB / 1.099 GB, free: 1.555 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/1.158, allocations: 30.42 kB / 1.099 GB, free: 1.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/1.158, allocations: 80.14 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/1.158, allocations: 13.41 kB / 1.099 GB, free: 1.426 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.822e-06/1.159, allocations: 0 / 1.099 GB, free: 1.426 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001348/1.159, allocations: 310.8 kB / 1.099 GB, free: 1.113 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.765e-05/1.159, allocations: 11.98 kB / 1.099 GB, free: 1.102 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.97e-05/1.159, allocations: 8.547 kB / 1.099 GB, free: 1.094 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.991e-05/1.159, allocations: 12 kB / 1.099 GB, free: 1.082 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.159, allocations: 0 / 1.099 GB, free: 1.082 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001563/1.159, allocations: 54.33 kB / 1.099 GB, free: 1.023 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/1.159, allocations: 4 kB / 1.099 GB, free: 1.02 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/1.159, allocations: 4 kB / 1.099 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/1.159, allocations: 0 / 1.099 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/1.159, allocations: 15.98 kB / 1.099 GB, free: 1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/1.159, allocations: 0 / 1.099 GB, free: 1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/1.159, allocations: 11.98 kB / 1.099 GB, free: 0.9883 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/1.159, allocations: 4 kB / 1.099 GB, free: 0.9844 MB / 0.698 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.0001031/1.16, allocations: 112.8 kB / 1.099 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/1.16, allocations: 8.156 kB / 1.099 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002114/1.16, allocations: 53.88 kB / 1.099 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/1.16, allocations: 0 / 1.099 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/1.16, allocations: 0 / 1.099 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/1.16, allocations: 0 / 1.099 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/1.16, allocations: 146.1 kB / 1.099 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/1.16, allocations: 11.92 kB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/1.16, allocations: 8.844 kB / 1.1 GB, free: 0.6016 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/1.16, allocations: 5.875 kB / 1.1 GB, free: 0.5977 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/1.16, allocations: 3.984 kB / 1.1 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/1.16, allocations: 0 / 1.1 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.16, allocations: 0 / 1.1 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002058/1.161, allocations: 154 kB / 1.1 GB, free: 440 kB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004148/1.161, allocations: 0.5082 MB / 1.1 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.822e-05/1.161, allocations: 85.02 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/1.161, allocations: 3.984 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/1.161, allocations: 12 kB / 1.1 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.442e-05/1.161, allocations: 8.688 kB / 1.1 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/1.161, allocations: 3.938 kB / 1.1 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001192/1.162, allocations: 79.28 kB / 1.1 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001154/1.163, allocations: 19.84 kB / 1.1 GB, free: 15.68 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.0002168/1.163, allocations: 107.2 kB / 1.1 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001317/1.163, allocations: 20.7 kB / 1.1 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.163, allocations: 4 kB / 1.1 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.793e-05/1.163, allocations: 19.92 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/1.163, allocations: 1.781 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000336/1.164, allocations: 60.73 kB / 1.101 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/1.164, allocations: 0.6954 MB / 1.101 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of SimCode: time 1.012e-06/1.164, allocations: 4 kB / 1.101 GB, free: 14.71 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)