Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7236/0.7236, allocations: 141.8 MB / 149.1 MB, free: 1.297 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 182.8 kB / 181.9 MB, free: 0.6602 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 221.4 MB / 436 MB, free: 5.363 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 100 kB / 0.507 GB, free: 2.02 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001725/0.001725, allocations: 271.6 kB / 0.5884 GB, free: 47.11 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3264/0.3282, allocations: 89.63 MB / 0.676 GB, free: 59.5 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.4668, allocations: 82.78 MB / 0.7568 GB, free: 456 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.6086, allocations: 108 MB / 0.8623 GB, free: 4.238 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.6089, allocations: 70 kB / 0.8624 GB, free: 4.172 MB / 0.5419 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.003669/0.6125, allocations: 1.208 MB / 0.8636 GB, free: 2.914 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.6126, allocations: 12 kB / 0.8636 GB, free: 2.902 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.6126, allocations: 11.91 kB / 0.8636 GB, free: 2.891 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.6128, allocations: 186.9 kB / 0.8638 GB, free: 2.668 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.6128, allocations: 4 kB / 0.8638 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.6129, allocations: 0 / 0.8638 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001032/0.613, allocations: 31.98 kB / 0.8638 GB, free: 2.633 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.821e-05/0.6131, allocations: 61.56 kB / 0.8639 GB, free: 2.566 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.6131, allocations: 0 / 0.8639 GB, free: 2.566 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.6131, allocations: 0 / 0.8639 GB, free: 2.566 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.6131, allocations: 3.984 kB / 0.8639 GB, free: 2.562 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.6136, allocations: 325.1 kB / 0.8642 GB, free: 2.207 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.219e-05/0.6137, allocations: 38.61 kB / 0.8642 GB, free: 2.16 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.6138, allocations: 16.86 kB / 0.8642 GB, free: 2.141 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.6138, allocations: 4 kB / 0.8642 GB, free: 2.137 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.6138, allocations: 34.56 kB / 0.8643 GB, free: 2.094 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.6138, allocations: 0 / 0.8643 GB, free: 2.094 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.0002088/0.614, allocations: 65.66 kB / 0.8643 GB, free: 2.023 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.6141, allocations: 51.41 kB / 0.8644 GB, free: 1.961 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.969e-05/0.6142, allocations: 101 kB / 0.8645 GB, free: 1.855 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.6142, allocations: 25.7 kB / 0.8645 GB, free: 1.824 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.6142, allocations: 92.12 kB / 0.8646 GB, free: 1.73 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.6143, allocations: 7.812 kB / 0.8646 GB, free: 1.723 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-06/0.6143, allocations: 4 kB / 0.8646 GB, free: 1.719 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.6144, allocations: 322.8 kB / 0.8649 GB, free: 1.395 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.801e-05/0.6144, allocations: 11.94 kB / 0.8649 GB, free: 1.383 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.47e-05/0.6145, allocations: 12 kB / 0.8649 GB, free: 1.371 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.196e-05/0.6145, allocations: 11.98 kB / 0.8649 GB, free: 1.359 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.6145, allocations: 0 / 0.8649 GB, free: 1.359 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001179/0.6146, allocations: 57.59 kB / 0.865 GB, free: 1.297 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.6147, allocations: 8 kB / 0.865 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.6147, allocations: 0 / 0.865 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.6147, allocations: 4 kB / 0.865 GB, free: 1.285 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.6148, allocations: 23.97 kB / 0.865 GB, free: 1.262 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-06/0.6148, allocations: 0 / 0.865 GB, free: 1.262 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.487e-05/0.6149, allocations: 23.92 kB / 0.8651 GB, free: 1.238 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.615, allocations: 4 kB / 0.8651 GB, free: 1.234 MB / 0.5419 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 6.987e-05/0.6151, allocations: 108.9 kB / 0.8652 GB, free: 1.121 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.6151, allocations: 4 kB / 0.8652 GB, free: 1.117 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001607/0.6153, allocations: 65.61 kB / 0.8652 GB, free: 1.047 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.6153, allocations: 7.906 kB / 0.8652 GB, free: 1.039 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.6153, allocations: 4 kB / 0.8652 GB, free: 1.035 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.6153, allocations: 0 / 0.8652 GB, free: 1.035 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.6154, allocations: 158.1 kB / 0.8654 GB, free: 0.8438 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6154, allocations: 0 / 0.8654 GB, free: 0.8438 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.6156, allocations: 23.97 kB / 0.8654 GB, free: 0.8203 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.6156, allocations: 7.938 kB / 0.8654 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.6156, allocations: 0 / 0.8654 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6156, allocations: 0 / 0.8654 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6156, allocations: 0 / 0.8654 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001694/0.6158, allocations: 155.4 kB / 0.8656 GB, free: 0.6445 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003218/0.6162, allocations: 0.5349 MB / 0.8661 GB, free: 92 kB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.1727/0.7888, allocations: 77.11 kB / 0.8662 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.7889, allocations: 3.812 kB / 0.8662 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.7891, allocations: 19.36 kB / 0.8662 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.7891, allocations: 6.75 kB / 0.8662 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.7891, allocations: 6.219 kB / 0.8662 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.717e-05/0.7892, allocations: 89.81 kB / 0.8663 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008316/0.79, allocations: 10.16 kB / 0.8663 GB, free: 168.6 MB / 0.5419 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.0001195/0.7901, allocations: 96.25 kB / 0.8664 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001084/0.7903, allocations: 34.48 kB / 0.8664 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.7903, allocations: 0 / 0.8664 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.187e-05/0.7903, allocations: 18.84 kB / 0.8664 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001648/0.7905, allocations: 11.34 kB / 0.8665 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002408/0.7907, allocations: 91.73 kB / 0.8665 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.7909, allocations: 0.7075 MB / 0.8672 GB, free: 167.7 MB / 0.5419 GB Notification: Performance of SimCode: time 2.6e-07/0.7909, allocations: 0 / 0.8672 GB, free: 167.7 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)