Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Average.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.Average,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.638/1.638, allocations: 289.8 MB / 297.1 MB, free: 6.621 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.001096/0.001096, allocations: 181.3 kB / 366.3 MB, free: 1.953 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.449/1.449, allocations: 205.1 MB / 0.6256 GB, free: 7.441 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.0009487/0.0009485, allocations: 91.66 kB / 0.7395 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.2773/0.2783, allocations: 122.4 MB / 0.8591 GB, free: 1.586 MB / 0.6511 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6331/0.9114, allocations: 116.3 MB / 0.9726 GB, free: 144.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/1.092, allocations: 138.3 MB / 1.108 GB, free: 63.86 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/1.092, allocations: 75.78 kB / 1.108 GB, free: 63.79 MB / 0.7605 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.003361/1.096, allocations: 1.202 MB / 1.109 GB, free: 62.59 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/1.096, allocations: 8.781 kB / 1.109 GB, free: 62.59 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/1.096, allocations: 7.906 kB / 1.109 GB, free: 62.58 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/1.096, allocations: 194.6 kB / 1.109 GB, free: 62.35 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-06/1.096, allocations: 4 kB / 1.109 GB, free: 62.35 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/1.096, allocations: 0.75 kB / 1.109 GB, free: 62.35 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.271e-05/1.096, allocations: 31.98 kB / 1.109 GB, free: 62.32 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.995e-05/1.096, allocations: 58.92 kB / 1.109 GB, free: 62.25 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/1.096, allocations: 0 / 1.109 GB, free: 62.25 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/1.096, allocations: 0 / 1.109 GB, free: 62.25 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/1.096, allocations: 0.9375 kB / 1.109 GB, free: 62.25 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/1.097, allocations: 319 kB / 1.11 GB, free: 61.91 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 6.355e-05/1.097, allocations: 35.3 kB / 1.11 GB, free: 61.87 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.309e-05/1.097, allocations: 19.3 kB / 1.11 GB, free: 61.85 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/1.097, allocations: 4 kB / 1.11 GB, free: 61.84 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.415e-05/1.097, allocations: 34.64 kB / 1.11 GB, free: 61.8 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=3): time 1.723e-06/1.097, allocations: 96 / 1.11 GB, free: 61.8 MB / 0.7605 GB Notification: Performance of matching and sorting (n=3): time 0.0002041/1.097, allocations: 65.03 kB / 1.11 GB, free: 61.73 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.656e-05/1.097, allocations: 51.41 kB / 1.11 GB, free: 61.67 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.98e-05/1.097, allocations: 102.8 kB / 1.11 GB, free: 61.57 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/1.097, allocations: 25.7 kB / 1.11 GB, free: 61.54 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 1.987e-05/1.097, allocations: 95.12 kB / 1.11 GB, free: 61.44 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/1.097, allocations: 11.75 kB / 1.11 GB, free: 61.43 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/1.097, allocations: 0.8438 kB / 1.11 GB, free: 61.43 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 4.514e-05/1.097, allocations: 322.8 kB / 1.11 GB, free: 61.11 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.461e-05/1.097, allocations: 8.656 kB / 1.11 GB, free: 61.1 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.235e-05/1.097, allocations: 12.56 kB / 1.11 GB, free: 61.09 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.992e-05/1.097, allocations: 13.89 kB / 1.11 GB, free: 61.07 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/1.097, allocations: 0 / 1.11 GB, free: 61.07 MB / 0.7605 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001035/1.098, allocations: 61.53 kB / 1.11 GB, free: 61.01 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/1.098, allocations: 8 kB / 1.11 GB, free: 61 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/1.098, allocations: 3.938 kB / 1.11 GB, free: 61 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/1.098, allocations: 1.188 kB / 1.11 GB, free: 61 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/1.098, allocations: 28.78 kB / 1.11 GB, free: 60.97 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/1.098, allocations: 0 / 1.11 GB, free: 60.97 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.087e-05/1.098, allocations: 15.98 kB / 1.11 GB, free: 60.96 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/1.098, allocations: 9.938 kB / 1.11 GB, free: 60.95 MB / 0.7605 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 4.068e-05/1.098, allocations: 108.3 kB / 1.111 GB, free: 60.84 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/1.098, allocations: 4 kB / 1.111 GB, free: 60.84 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/1.098, allocations: 63.14 kB / 1.111 GB, free: 60.77 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/1.098, allocations: 4 kB / 1.111 GB, free: 60.77 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/1.098, allocations: 3.906 kB / 1.111 GB, free: 60.76 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/1.098, allocations: 3.984 kB / 1.111 GB, free: 60.76 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/1.098, allocations: 150.8 kB / 1.111 GB, free: 60.57 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.098, allocations: 5.969 kB / 1.111 GB, free: 60.57 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/1.098, allocations: 28.94 kB / 1.111 GB, free: 60.54 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/1.098, allocations: 2.391 kB / 1.111 GB, free: 60.54 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/1.098, allocations: 3.938 kB / 1.111 GB, free: 60.54 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.098, allocations: 3.938 kB / 1.111 GB, free: 60.54 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.098, allocations: 0 / 1.111 GB, free: 60.54 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001225/1.099, allocations: 155.5 kB / 1.111 GB, free: 60.38 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001533/1.099, allocations: 0.5309 MB / 1.112 GB, free: 59.83 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/1.099, allocations: 81.05 kB / 1.112 GB, free: 59.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/1.099, allocations: 2.531 kB / 1.112 GB, free: 59.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/1.099, allocations: 18.64 kB / 1.112 GB, free: 59.71 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.028e-05/1.099, allocations: 15.89 kB / 1.112 GB, free: 59.7 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-06/1.099, allocations: 3.125 kB / 1.112 GB, free: 59.7 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.559e-05/1.099, allocations: 91.27 kB / 1.112 GB, free: 59.61 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008295/1.1, allocations: 8 kB / 1.112 GB, free: 59.6 MB / 0.7605 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.0001696/1.1, allocations: 103.2 kB / 1.112 GB, free: 59.49 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0001016/1.1, allocations: 27.98 kB / 1.112 GB, free: 59.46 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/1.1, allocations: 0.6875 kB / 1.112 GB, free: 59.46 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/1.1, allocations: 19.94 kB / 1.112 GB, free: 59.44 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/1.1, allocations: 5.719 kB / 1.112 GB, free: 59.44 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002671/1.101, allocations: 95.61 kB / 1.112 GB, free: 59.32 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/1.101, allocations: 0.7043 MB / 1.113 GB, free: 58.59 MB / 0.7605 GB Notification: Performance of SimCode: time 2.3e-07/1.101, allocations: 0.5625 kB / 1.113 GB, free: 58.59 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)