Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",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 9.1.1-maint.9.1.x/package.mo): time 1.908/1.908, allocations: 387.2 MB / 394.5 MB, free: 13.31 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 183.1 kB / 487 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 221.4 MB / 0.7819 GB, free: 6.867 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009749/0.0009749, allocations: 106.5 kB / 0.9213 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2924/0.2934, allocations: 148.5 MB / 1.066 GB, free: 7.496 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.752/1.045, allocations: 142.3 MB / 1.205 GB, free: 72.79 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.764/4.809, allocations: 1.972 GB / 3.177 GB, free: 112.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/4.81, allocations: 91.94 kB / 3.177 GB, free: 112.2 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 2.819/7.628, allocations: 0.6676 GB / 3.845 GB, free: 270.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/7.629, allocations: 10.78 kB / 3.845 GB, free: 270.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/7.631, allocations: 264.3 kB / 3.845 GB, free: 270.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003587/7.634, allocations: 1.123 MB / 3.846 GB, free: 270 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/7.634, allocations: 34.53 kB / 3.846 GB, free: 270 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002925/7.635, allocations: 55.78 kB / 3.846 GB, free: 270 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001817/7.636, allocations: 0.7799 MB / 3.847 GB, free: 270 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/7.638, allocations: 0.9973 MB / 3.848 GB, free: 269.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/7.638, allocations: 5.219 kB / 3.848 GB, free: 269.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.7e-05/7.639, allocations: 3.906 kB / 3.848 GB, free: 269.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.572e-05/7.639, allocations: 41.16 kB / 3.848 GB, free: 269.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006507/7.645, allocations: 5.832 MB / 3.854 GB, free: 265.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007847/7.646, allocations: 0.5155 MB / 3.854 GB, free: 265.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/7.646, allocations: 299.2 kB / 3.855 GB, free: 265.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005657/7.647, allocations: 317.4 kB / 3.855 GB, free: 265.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/7.647, allocations: 40.44 kB / 3.855 GB, free: 265.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 4.89e-06/7.647, allocations: 3.938 kB / 3.855 GB, free: 265.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=49): time 0.001578/7.649, allocations: 0.6102 MB / 3.856 GB, free: 265.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/7.649, allocations: 58.53 kB / 3.856 GB, free: 265.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/7.649, allocations: 0.5196 MB / 3.856 GB, free: 265.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.16e-05/7.65, allocations: 29.55 kB / 3.856 GB, free: 265.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/7.65, allocations: 423 kB / 3.857 GB, free: 265 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/7.65, allocations: 171.8 kB / 3.857 GB, free: 265 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/7.65, allocations: 0 / 3.857 GB, free: 265 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000129/7.65, allocations: 386.4 kB / 3.857 GB, free: 264.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/7.65, allocations: 225.2 kB / 3.857 GB, free: 264.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005228/7.651, allocations: 0.5522 MB / 3.858 GB, free: 264.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006172/7.652, allocations: 375.4 kB / 3.858 GB, free: 264.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/7.652, allocations: 0 / 3.858 GB, free: 264.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001318/7.653, allocations: 0.7896 MB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/7.653, allocations: 7.094 kB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/7.653, allocations: 11.16 kB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.053e-05/7.653, allocations: 13.69 kB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000589/7.654, allocations: 159.9 kB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/7.654, allocations: 17.06 kB / 3.859 GB, free: 264.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/7.655, allocations: 118.1 kB / 3.859 GB, free: 264.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.444e-05/7.655, allocations: 38.19 kB / 3.859 GB, free: 264.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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 0.0001662/7.655, allocations: 128.7 kB / 3.859 GB, free: 264 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/7.655, allocations: 77.19 kB / 3.86 GB, free: 264 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/7.656, allocations: 0.6072 MB / 3.86 GB, free: 263.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/7.656, allocations: 10.62 kB / 3.86 GB, free: 263.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/7.656, allocations: 0 / 3.86 GB, free: 263.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000695/7.657, allocations: 0.527 MB / 3.861 GB, free: 263.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/7.66, allocations: 1.551 MB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/7.66, allocations: 3.875 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/7.66, allocations: 109.4 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/7.66, allocations: 3.906 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/7.66, allocations: 10.72 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/7.66, allocations: 7.719 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/7.66, allocations: 2.75 kB / 3.862 GB, free: 263.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001288/7.662, allocations: 1.088 MB / 3.863 GB, free: 263.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001972/7.664, allocations: 1.9 MB / 3.865 GB, free: 262.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004586/7.664, allocations: 216.7 kB / 3.865 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/7.664, allocations: 8.969 kB / 3.865 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007214/7.665, allocations: 53.64 kB / 3.866 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/7.665, allocations: 32.69 kB / 3.866 GB, free: 262.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/7.665, allocations: 21.95 kB / 3.866 GB, free: 262.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004935/7.666, allocations: 400.7 kB / 3.866 GB, free: 262.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002677/7.668, allocations: 0.6529 MB / 3.867 GB, free: 262.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * 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.00386/7.672, allocations: 2.134 MB / 3.869 GB, free: 261.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001303/7.674, allocations: 0.5706 MB / 3.869 GB, free: 261.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/7.674, allocations: 3.5 kB / 3.869 GB, free: 261.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004414/7.674, allocations: 261 kB / 3.869 GB, free: 261.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/7.676, allocations: 348 kB / 3.87 GB, free: 261.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/7.68, allocations: 1.514 MB / 3.871 GB, free: 261 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009493/7.681, allocations: 1.234 MB / 3.872 GB, free: 260.2 MB / 1.151 GB Notification: Performance of SimCode: time 8.61e-07/7.681, allocations: 2.469 kB / 3.873 GB, free: 260.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)