Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.581/1.581, allocations: 289.8 MB / 297.1 MB, free: 6.668 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.001379/0.001378, allocations: 181.2 kB / 366.3 MB, free: 1.988 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.378/1.378, allocations: 205.1 MB / 0.6256 GB, free: 5.844 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.0009471/0.000947, allocations: 91.7 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2846/0.2856, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.9325, allocations: 116.3 MB / 0.9726 GB, free: 68.15 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.302/5.235, allocations: 2.128 GB / 3.101 GB, free: 336.1 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/5.235, allocations: 97.78 kB / 3.101 GB, free: 336 MB / 0.948 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 1.841/7.076, allocations: 0.6571 GB / 3.758 GB, free: 22 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/7.077, allocations: 8 kB / 3.758 GB, free: 21.99 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002086/7.079, allocations: 270.2 kB / 3.758 GB, free: 21.72 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/7.082, allocations: 1.109 MB / 3.759 GB, free: 20.57 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/7.082, allocations: 36 kB / 3.759 GB, free: 20.54 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003056/7.082, allocations: 59.94 kB / 3.759 GB, free: 20.48 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001606/7.084, allocations: 0.7732 MB / 3.76 GB, free: 19.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/7.086, allocations: 0.9945 MB / 3.761 GB, free: 18.64 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/7.086, allocations: 0 / 3.761 GB, free: 18.64 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.904e-05/7.086, allocations: 15.92 kB / 3.761 GB, free: 18.62 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.143e-05/7.086, allocations: 34 kB / 3.761 GB, free: 18.59 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005984/7.092, allocations: 5.676 MB / 3.767 GB, free: 12.49 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000717/7.092, allocations: 0.5158 MB / 3.767 GB, free: 11.96 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/7.093, allocations: 298.6 kB / 3.767 GB, free: 11.67 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005493/7.093, allocations: 311.8 kB / 3.768 GB, free: 11.31 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/7.093, allocations: 42.98 kB / 3.768 GB, free: 11.26 MB / 0.948 GB Notification: Performance of pre-optimization done (n=49): time 2.865e-06/7.093, allocations: 0 / 3.768 GB, free: 11.26 MB / 0.948 GB Notification: Performance of matching and sorting (n=49): time 0.001501/7.095, allocations: 0.6075 MB / 3.768 GB, free: 10.64 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/7.095, allocations: 59.84 kB / 3.768 GB, free: 10.57 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006213/7.096, allocations: 0.5192 MB / 3.769 GB, free: 10.05 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.84e-05/7.096, allocations: 25.7 kB / 3.769 GB, free: 10.02 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/7.096, allocations: 426.4 kB / 3.769 GB, free: 9.59 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/7.096, allocations: 169.5 kB / 3.77 GB, free: 9.422 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/7.096, allocations: 0 / 3.77 GB, free: 9.422 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.641e-05/7.096, allocations: 390.7 kB / 3.77 GB, free: 9.031 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003064/7.096, allocations: 229.5 kB / 3.77 GB, free: 8.805 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/7.097, allocations: 0.5539 MB / 3.771 GB, free: 8.102 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/7.097, allocations: 374.5 kB / 3.771 GB, free: 7.738 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/7.097, allocations: 4 kB / 3.771 GB, free: 7.734 MB / 0.948 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001235/7.099, allocations: 0.7873 MB / 3.772 GB, free: 6.938 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/7.099, allocations: 8 kB / 3.772 GB, free: 6.93 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/7.099, allocations: 8 kB / 3.772 GB, free: 6.922 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/7.099, allocations: 12 kB / 3.772 GB, free: 6.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/7.099, allocations: 151.8 kB / 3.772 GB, free: 6.762 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/7.099, allocations: 19.92 kB / 3.772 GB, free: 6.742 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009821/7.1, allocations: 107.6 kB / 3.772 GB, free: 6.637 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.284e-05/7.1, allocations: 36 kB / 3.772 GB, free: 6.602 MB / 0.948 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.0001504/7.101, allocations: 132.7 kB / 3.772 GB, free: 6.465 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/7.101, allocations: 83.09 kB / 3.772 GB, free: 6.383 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009463/7.102, allocations: 0.6003 MB / 3.773 GB, free: 5.773 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/7.102, allocations: 11.94 kB / 3.773 GB, free: 5.762 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/7.102, allocations: 3.984 kB / 3.773 GB, free: 5.758 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006927/7.102, allocations: 0.5164 MB / 3.773 GB, free: 5.23 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/7.105, allocations: 1.547 MB / 3.775 GB, free: 3.613 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/7.105, allocations: 4 kB / 3.775 GB, free: 3.609 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005698/7.105, allocations: 116.1 kB / 3.775 GB, free: 3.496 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/7.105, allocations: 7.906 kB / 3.775 GB, free: 3.488 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/7.105, allocations: 4 kB / 3.775 GB, free: 3.484 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/7.105, allocations: 4 kB / 3.775 GB, free: 3.48 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/7.106, allocations: 7.938 kB / 3.775 GB, free: 3.473 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001234/7.107, allocations: 1.124 MB / 3.776 GB, free: 2.266 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001945/7.109, allocations: 1.935 MB / 3.778 GB, free: 252 kB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004092/7.109, allocations: 223.9 kB / 3.778 GB, free: 8 kB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/7.109, allocations: 4 kB / 3.778 GB, free: 4 kB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.4197/7.529, allocations: 52.41 kB / 3.778 GB, free: 249.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/7.529, allocations: 36.47 kB / 3.778 GB, free: 249.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/7.529, allocations: 16.56 kB / 3.778 GB, free: 249.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005327/7.53, allocations: 401.8 kB / 3.779 GB, free: 249.8 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002627/7.532, allocations: 0.6545 MB / 3.779 GB, free: 249.8 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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.002858/7.535, allocations: 2.139 MB / 3.781 GB, free: 249.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0009715/7.536, allocations: 0.569 MB / 3.782 GB, free: 249.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/7.536, allocations: 0 / 3.782 GB, free: 249.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002977/7.537, allocations: 266.9 kB / 3.782 GB, free: 249.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/7.538, allocations: 351.6 kB / 3.783 GB, free: 249.3 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/7.541, allocations: 1.495 MB / 3.784 GB, free: 248.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007823/7.542, allocations: 1.223 MB / 3.785 GB, free: 248.2 MB / 0.948 GB Notification: Performance of SimCode: time 6.92e-07/7.542, allocations: 0 / 3.785 GB, free: 248.2 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)