Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_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/BuildSysPro 3.5.0/package.mo): time 0.7029/0.7029, allocations: 127.4 MB / 134.6 MB, free: 4.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 189.2 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.1 MB / 399.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 94.64 kB / 476.3 MB, free: 8.91 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3291/0.3302, allocations: 82.88 MB / 0.5461 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.4841, allocations: 76.75 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4339/0.918, allocations: 102 MB / 0.7206 GB, free: 10.42 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.9183, allocations: 71.95 kB / 0.7207 GB, free: 10.35 MB / 490.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.004039/0.9224, allocations: 1.214 MB / 0.7218 GB, free: 9.098 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.9224, allocations: 8 kB / 0.7218 GB, free: 9.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.9225, allocations: 7.906 kB / 0.7219 GB, free: 9.082 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.9227, allocations: 182.9 kB / 0.722 GB, free: 8.863 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.9227, allocations: 4 kB / 0.722 GB, free: 8.859 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.9227, allocations: 0 / 0.722 GB, free: 8.859 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001136/0.9228, allocations: 35.89 kB / 0.7221 GB, free: 8.824 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.923, allocations: 57.62 kB / 0.7221 GB, free: 8.762 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.923, allocations: 4 kB / 0.7221 GB, free: 8.758 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.923, allocations: 3.984 kB / 0.7221 GB, free: 8.754 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.923, allocations: 3.938 kB / 0.7221 GB, free: 8.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005711/0.9236, allocations: 313.3 kB / 0.7224 GB, free: 8.406 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.825e-05/0.9237, allocations: 38.61 kB / 0.7225 GB, free: 8.359 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.091e-05/0.9237, allocations: 24.77 kB / 0.7225 GB, free: 8.332 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.9238, allocations: 4 kB / 0.7225 GB, free: 8.328 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.9238, allocations: 30.56 kB / 0.7225 GB, free: 8.289 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.9238, allocations: 0 / 0.7225 GB, free: 8.289 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002295/0.924, allocations: 57.77 kB / 0.7226 GB, free: 8.227 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.9241, allocations: 52.16 kB / 0.7226 GB, free: 8.164 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.9242, allocations: 103.4 kB / 0.7227 GB, free: 8.059 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.9242, allocations: 29.7 kB / 0.7228 GB, free: 8.023 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.9242, allocations: 96.03 kB / 0.7229 GB, free: 7.926 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.9243, allocations: 7.844 kB / 0.7229 GB, free: 7.918 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-06/0.9243, allocations: 0 / 0.7229 GB, free: 7.918 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.9244, allocations: 326.7 kB / 0.7232 GB, free: 7.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.728e-05/0.9244, allocations: 11.94 kB / 0.7232 GB, free: 7.578 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.431e-05/0.9244, allocations: 15.94 kB / 0.7232 GB, free: 7.562 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.254e-05/0.9245, allocations: 11.98 kB / 0.7232 GB, free: 7.551 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.9245, allocations: 0 / 0.7232 GB, free: 7.551 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001195/0.9246, allocations: 61.59 kB / 0.7233 GB, free: 7.484 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.9247, allocations: 8 kB / 0.7233 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.9247, allocations: 0 / 0.7233 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.9247, allocations: 0 / 0.7233 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.9249, allocations: 23.97 kB / 0.7233 GB, free: 7.453 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.9249, allocations: 3.984 kB / 0.7233 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.303e-05/0.925, allocations: 19.98 kB / 0.7233 GB, free: 7.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.925, allocations: 4 kB / 0.7233 GB, free: 7.426 MB / 490.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 7.959e-05/0.9251, allocations: 105 kB / 0.7234 GB, free: 7.316 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.9251, allocations: 11.91 kB / 0.7234 GB, free: 7.305 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.9253, allocations: 69.78 kB / 0.7235 GB, free: 7.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.9253, allocations: 4 kB / 0.7235 GB, free: 7.227 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.9253, allocations: 0 / 0.7235 GB, free: 7.227 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.9254, allocations: 7.312 kB / 0.7235 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.9255, allocations: 158.1 kB / 0.7237 GB, free: 7.031 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.9255, allocations: 0 / 0.7237 GB, free: 7.031 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.9257, allocations: 27.97 kB / 0.7237 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.9257, allocations: 0 / 0.7237 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.9257, allocations: 0 / 0.7237 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.9257, allocations: 0 / 0.7237 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.9257, allocations: 0 / 0.7237 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001924/0.9259, allocations: 155.4 kB / 0.7238 GB, free: 6.836 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003199/0.9262, allocations: 0.5336 MB / 0.7244 GB, free: 6.285 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.9263, allocations: 81.02 kB / 0.7244 GB, free: 6.188 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.9263, allocations: 0 / 0.7244 GB, free: 6.188 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.9265, allocations: 19.98 kB / 0.7245 GB, free: 6.168 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.9265, allocations: 7.984 kB / 0.7245 GB, free: 6.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.9265, allocations: 0 / 0.7245 GB, free: 6.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.825e-05/0.9266, allocations: 95.27 kB / 0.7246 GB, free: 6.066 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007906/0.9274, allocations: 11.91 kB / 0.7246 GB, free: 6.055 MB / 490.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.0001682/0.9276, allocations: 103.2 kB / 0.7247 GB, free: 5.945 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.9277, allocations: 31.92 kB / 0.7247 GB, free: 5.914 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.9277, allocations: 4 kB / 0.7247 GB, free: 5.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.573e-05/0.9277, allocations: 16 kB / 0.7247 GB, free: 5.895 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001774/0.9279, allocations: 7.938 kB / 0.7247 GB, free: 5.887 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003174/0.9282, allocations: 91.8 kB / 0.7248 GB, free: 5.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.9286, allocations: 0.7032 MB / 0.7255 GB, free: 5.043 MB / 490.7 MB Notification: Performance of SimCode: time 2.61e-07/0.9286, allocations: 0 / 0.7255 GB, free: 5.043 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)