Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 186.1 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5195/0.5195, allocations: 90.85 MB / 99.08 MB, free: 14.94 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.4 MB / 342.8 MB, free: 5.242 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 100.8 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.182/0.1832, allocations: 78.44 MB / 494 MB, free: 7.98 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.5442, allocations: 72.3 MB / 0.553 GB, free: 73.36 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.6564, allocations: 100.9 MB / 0.6515 GB, free: 9.141 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.6566, allocations: 67.97 kB / 0.6516 GB, free: 9.074 MB / 474.7 MB 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.003847/0.6605, allocations: 1.213 MB / 0.6528 GB, free: 7.852 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.6606, allocations: 12 kB / 0.6528 GB, free: 7.84 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.6606, allocations: 4.938 kB / 0.6528 GB, free: 7.836 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.6608, allocations: 190.9 kB / 0.653 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-06/0.6608, allocations: 0 / 0.653 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.6608, allocations: 8.5 kB / 0.653 GB, free: 7.602 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.928e-05/0.6609, allocations: 28.55 kB / 0.653 GB, free: 7.574 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.863e-05/0.661, allocations: 54.59 kB / 0.6531 GB, free: 7.516 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.6611, allocations: 0 / 0.6531 GB, free: 7.516 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.6611, allocations: 0 / 0.6531 GB, free: 7.516 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.6611, allocations: 8.562 kB / 0.6531 GB, free: 7.508 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.6616, allocations: 317.1 kB / 0.6534 GB, free: 7.168 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.09e-05/0.6617, allocations: 36.53 kB / 0.6534 GB, free: 7.125 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.234e-05/0.6618, allocations: 24.8 kB / 0.6535 GB, free: 7.098 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.6618, allocations: 3 kB / 0.6535 GB, free: 7.098 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.6619, allocations: 31.06 kB / 0.6535 GB, free: 7.059 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.6619, allocations: 0.5 kB / 0.6535 GB, free: 7.059 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002516/0.6621, allocations: 71.2 kB / 0.6536 GB, free: 6.984 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.6622, allocations: 51.41 kB / 0.6536 GB, free: 6.922 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.6623, allocations: 103.2 kB / 0.6537 GB, free: 6.816 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.6623, allocations: 26.23 kB / 0.6537 GB, free: 6.785 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.6624, allocations: 92.62 kB / 0.6538 GB, free: 6.691 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.6624, allocations: 12.69 kB / 0.6538 GB, free: 6.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/0.6624, allocations: 0 / 0.6538 GB, free: 6.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.6625, allocations: 315.4 kB / 0.6541 GB, free: 6.363 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.201e-05/0.6626, allocations: 12.48 kB / 0.6541 GB, free: 6.352 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.354e-05/0.6626, allocations: 8.5 kB / 0.6541 GB, free: 6.344 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.842e-05/0.6627, allocations: 16.7 kB / 0.6542 GB, free: 6.328 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.6627, allocations: 0 / 0.6542 GB, free: 6.328 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001295/0.6628, allocations: 65.73 kB / 0.6542 GB, free: 6.258 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.6629, allocations: 4 kB / 0.6542 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.6629, allocations: 0 / 0.6542 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.6629, allocations: 7.969 kB / 0.6542 GB, free: 6.246 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.663, allocations: 19.98 kB / 0.6543 GB, free: 6.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.6631, allocations: 4 kB / 0.6543 GB, free: 6.223 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.6632, allocations: 27.88 kB / 0.6543 GB, free: 6.195 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.6632, allocations: 0 / 0.6543 GB, free: 6.195 MB / 474.7 MB 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 8.239e-05/0.6633, allocations: 105 kB / 0.6544 GB, free: 6.086 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.6633, allocations: 7.906 kB / 0.6544 GB, free: 6.078 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.6635, allocations: 71.05 kB / 0.6545 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.6635, allocations: 0 / 0.6545 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.6635, allocations: 0 / 0.6545 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.6635, allocations: 0 / 0.6545 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.6637, allocations: 158.1 kB / 0.6546 GB, free: 5.809 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.6637, allocations: 0 / 0.6546 GB, free: 5.809 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.6639, allocations: 31.86 kB / 0.6546 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.6639, allocations: 2.906 kB / 0.6546 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.6639, allocations: 7.984 kB / 0.6547 GB, free: 5.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.6639, allocations: 0 / 0.6547 GB, free: 5.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.6639, allocations: 1.438 kB / 0.6547 GB, free: 5.77 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001758/0.6641, allocations: 151.5 kB / 0.6548 GB, free: 5.605 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002855/0.6644, allocations: 0.5272 MB / 0.6553 GB, free: 5.059 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.6644, allocations: 81.02 kB / 0.6554 GB, free: 4.961 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.6645, allocations: 4 kB / 0.6554 GB, free: 4.957 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.6646, allocations: 19.98 kB / 0.6554 GB, free: 4.938 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.6647, allocations: 7.922 kB / 0.6554 GB, free: 4.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.6647, allocations: 4 kB / 0.6554 GB, free: 4.926 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.642e-05/0.6647, allocations: 87.28 kB / 0.6555 GB, free: 4.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007988/0.6655, allocations: 15.91 kB / 0.6555 GB, free: 4.824 MB / 474.7 MB 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.0001477/0.6657, allocations: 107.2 kB / 0.6556 GB, free: 4.707 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.6658, allocations: 28 kB / 0.6557 GB, free: 4.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6658, allocations: 4 kB / 0.6557 GB, free: 4.676 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.876e-05/0.6659, allocations: 15.98 kB / 0.6557 GB, free: 4.66 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.666, allocations: 4 kB / 0.6557 GB, free: 4.656 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.6664, allocations: 99.59 kB / 0.6558 GB, free: 4.531 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003566/0.6667, allocations: 0.6993 MB / 0.6565 GB, free: 3.809 MB / 474.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6667, allocations: 4 kB / 0.6565 GB, free: 3.805 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)