Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.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.Average,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average",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.588/2.588, allocations: 284.8 MB / 292.1 MB, free: 10.69 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.001657/0.001657, allocations: 173.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.944/1.944, allocations: 205.2 MB / 0.6187 GB, free: 13.27 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.001231/0.001231, allocations: 92.23 kB / 0.7317 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2926/0.2939, allocations: 121.4 MB / 0.8502 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.68/0.9739, allocations: 115.2 MB / 0.9627 GB, free: 78.56 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2213/1.195, allocations: 137.2 MB / 1.097 GB, free: 3.629 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/1.196, allocations: 73.89 kB / 1.097 GB, free: 3.559 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.006147/1.202, allocations: 1.203 MB / 1.098 GB, free: 2.359 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/1.202, allocations: 9.125 kB / 1.098 GB, free: 2.352 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/1.202, allocations: 7.906 kB / 1.098 GB, free: 2.344 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/1.202, allocations: 192.1 kB / 1.098 GB, free: 2.117 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/1.202, allocations: 5.781 kB / 1.098 GB, free: 2.113 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.872e-05/1.202, allocations: 0.8125 kB / 1.098 GB, free: 2.113 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001581/1.202, allocations: 32 kB / 1.098 GB, free: 2.082 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/1.203, allocations: 62.78 kB / 1.098 GB, free: 2.016 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.203, allocations: 2.969 kB / 1.098 GB, free: 2.016 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/1.203, allocations: 0 / 1.098 GB, free: 2.016 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/1.203, allocations: 0.5 kB / 1.098 GB, free: 2.016 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008347/1.203, allocations: 317.8 kB / 1.099 GB, free: 1.668 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/1.204, allocations: 35.42 kB / 1.099 GB, free: 1.625 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.696e-05/1.204, allocations: 20.84 kB / 1.099 GB, free: 1.602 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/1.204, allocations: 4 kB / 1.099 GB, free: 1.598 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/1.204, allocations: 34.56 kB / 1.099 GB, free: 1.555 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/1.204, allocations: 0 / 1.099 GB, free: 1.555 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0003143/1.204, allocations: 58.2 kB / 1.099 GB, free: 1.492 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/1.204, allocations: 51.41 kB / 1.099 GB, free: 1.43 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/1.204, allocations: 108.1 kB / 1.099 GB, free: 1.32 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/1.204, allocations: 29.64 kB / 1.099 GB, free: 1.285 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.705e-05/1.204, allocations: 88.14 kB / 1.099 GB, free: 1.195 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/1.204, allocations: 15.73 kB / 1.099 GB, free: 1.18 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/1.204, allocations: 0 / 1.099 GB, free: 1.18 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.205, allocations: 322.8 kB / 1.099 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.804e-05/1.205, allocations: 8 kB / 1.099 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/1.205, allocations: 19.73 kB / 1.099 GB, free: 0.832 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.874e-05/1.205, allocations: 12 kB / 1.099 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.205, allocations: 0 / 1.099 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001941/1.205, allocations: 58.14 kB / 1.099 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/1.205, allocations: 9.094 kB / 1.099 GB, free: 0.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/1.205, allocations: 0 / 1.099 GB, free: 0.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/1.205, allocations: 3.938 kB / 1.099 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/1.205, allocations: 27.98 kB / 1.099 GB, free: 0.7188 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/1.205, allocations: 0 / 1.099 GB, free: 0.7188 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/1.206, allocations: 19.98 kB / 1.099 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/1.206, allocations: 4.703 kB / 1.099 GB, free: 0.6953 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: 0 () * 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.504e-05/1.206, allocations: 117.3 kB / 1.1 GB, free: 0.5742 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.988e-05/1.206, allocations: 4 kB / 1.1 GB, free: 0.5703 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/1.206, allocations: 65.58 kB / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/1.206, allocations: 4.562 kB / 1.1 GB, free: 496 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/1.206, allocations: 0 / 1.1 GB, free: 496 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.206, allocations: 5.875 kB / 1.1 GB, free: 492 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/1.206, allocations: 154.2 kB / 1.1 GB, free: 300 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.206, allocations: 0 / 1.1 GB, free: 300 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/1.207, allocations: 19.98 kB / 1.1 GB, free: 280 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.207, allocations: 0 / 1.1 GB, free: 280 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/1.207, allocations: 4 kB / 1.1 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/1.207, allocations: 0 / 1.1 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/1.207, allocations: 3.906 kB / 1.1 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002985/1.207, allocations: 164.1 kB / 1.1 GB, free: 92 kB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000401/1.207, allocations: 0.5225 MB / 1.1 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.862e-05/1.208, allocations: 85.09 kB / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/1.208, allocations: 0 / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/1.208, allocations: 19.89 kB / 1.101 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/1.208, allocations: 13.86 kB / 1.101 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/1.208, allocations: 0 / 1.101 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.537e-05/1.208, allocations: 91.28 kB / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001115/1.209, allocations: 8 kB / 1.101 GB, free: 15.32 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: 0 () * 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.0001809/1.209, allocations: 107.2 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001638/1.209, allocations: 36.58 kB / 1.101 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.209, allocations: 0 / 1.101 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.238e-05/1.21, allocations: 16 kB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/1.21, allocations: 12.72 kB / 1.101 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/1.21, allocations: 100.5 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/1.211, allocations: 0.7032 MB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of SimCode: time 1.683e-06/1.211, allocations: 0 / 1.102 GB, free: 14.3 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)