Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7024/0.7024, allocations: 141.8 MB / 149.1 MB, free: 12.13 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 179.2 kB / 181.9 MB, free: 8.906 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.3/1.3, allocations: 221.4 MB / 436 MB, free: 1.215 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.0009921/0.000992, allocations: 102.4 kB / 0.507 GB, free: 10.14 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00181/0.001809, allocations: 269.4 kB / 0.5884 GB, free: 6.965 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1703/0.1721, allocations: 89.65 MB / 0.676 GB, free: 13.23 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.5203, allocations: 82.76 MB / 0.7568 GB, free: 138 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.345/3.866, allocations: 1.932 GB / 2.689 GB, free: 96.68 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/3.866, allocations: 91.94 kB / 2.689 GB, free: 96.59 MB / 0.6982 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.495/6.361, allocations: 0.6658 GB / 3.355 GB, free: 110.9 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/6.361, allocations: 7.938 kB / 3.355 GB, free: 110.9 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/6.363, allocations: 262.3 kB / 3.355 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/6.366, allocations: 1.114 MB / 3.356 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/6.366, allocations: 28.09 kB / 3.356 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/6.367, allocations: 59.41 kB / 3.356 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001592/6.368, allocations: 0.7764 MB / 3.357 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/6.37, allocations: 0.9978 MB / 3.358 GB, free: 110.4 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/6.37, allocations: 0 / 3.358 GB, free: 110.4 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.489e-05/6.37, allocations: 7.062 kB / 3.358 GB, free: 110.4 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.679e-05/6.37, allocations: 35.56 kB / 3.358 GB, free: 110.4 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005957/6.376, allocations: 5.675 MB / 3.364 GB, free: 106.6 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007369/6.377, allocations: 0.5119 MB / 3.364 GB, free: 106.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/6.377, allocations: 295.7 kB / 3.364 GB, free: 106.6 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005292/6.378, allocations: 318 kB / 3.365 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/6.378, allocations: 40.22 kB / 3.365 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/6.378, allocations: 0 / 3.365 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=49): time 0.001461/6.379, allocations: 0.6051 MB / 3.365 GB, free: 106.2 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/6.379, allocations: 61.48 kB / 3.365 GB, free: 106.1 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/6.38, allocations: 0.5159 MB / 3.366 GB, free: 106 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/6.38, allocations: 30.48 kB / 3.366 GB, free: 106 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/6.38, allocations: 424.4 kB / 3.366 GB, free: 105.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/6.38, allocations: 169.6 kB / 3.366 GB, free: 105.7 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/6.38, allocations: 0 / 3.366 GB, free: 105.7 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001184/6.381, allocations: 379.5 kB / 3.367 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/6.381, allocations: 235.2 kB / 3.367 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004898/6.381, allocations: 0.5533 MB / 3.368 GB, free: 105 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000573/6.382, allocations: 375.6 kB / 3.368 GB, free: 105 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/6.382, allocations: 5.094 kB / 3.368 GB, free: 105 MB / 0.6982 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001284/6.383, allocations: 0.7936 MB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/6.383, allocations: 7.062 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/6.383, allocations: 6.562 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/6.383, allocations: 14.31 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/6.384, allocations: 152.8 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.408e-05/6.384, allocations: 24.56 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/6.385, allocations: 103.6 kB / 3.369 GB, free: 104.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/6.385, allocations: 34.38 kB / 3.369 GB, free: 104.9 MB / 0.6982 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.0001763/6.385, allocations: 138.8 kB / 3.369 GB, free: 104.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/6.386, allocations: 77.5 kB / 3.369 GB, free: 104.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/6.387, allocations: 0.6049 MB / 3.37 GB, free: 104.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/6.387, allocations: 6.125 kB / 3.37 GB, free: 104.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/6.387, allocations: 0 / 3.37 GB, free: 104.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006927/6.387, allocations: 0.518 MB / 3.37 GB, free: 104.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/6.39, allocations: 1.559 MB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/6.39, allocations: 0 / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005728/6.391, allocations: 114.3 kB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/6.391, allocations: 5.875 kB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/6.391, allocations: 11.59 kB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/6.391, allocations: 2.625 kB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/6.391, allocations: 3.844 kB / 3.372 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001288/6.392, allocations: 1.127 MB / 3.373 GB, free: 103.9 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001955/6.394, allocations: 1.928 MB / 3.375 GB, free: 103.2 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/6.395, allocations: 217.3 kB / 3.375 GB, free: 103 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/6.395, allocations: 11.56 kB / 3.375 GB, free: 103 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/6.396, allocations: 55.34 kB / 3.375 GB, free: 103 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/6.396, allocations: 35.94 kB / 3.375 GB, free: 103 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/6.396, allocations: 15.81 kB / 3.375 GB, free: 103 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0004798/6.396, allocations: 402.2 kB / 3.376 GB, free: 102.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002553/6.399, allocations: 0.6528 MB / 3.376 GB, free: 102.9 MB / 0.6982 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.003115/6.402, allocations: 2.145 MB / 3.378 GB, free: 102.4 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.000953/6.403, allocations: 0.5679 MB / 3.379 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/6.403, allocations: 0 / 3.379 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003167/6.403, allocations: 267 kB / 3.379 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/6.405, allocations: 352.7 kB / 3.38 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/6.408, allocations: 1.5 MB / 3.381 GB, free: 101.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008909/6.409, allocations: 1.223 MB / 3.382 GB, free: 101.2 MB / 0.6982 GB Notification: Performance of SimCode: time 1.152e-06/6.409, allocations: 3.719 kB / 3.382 GB, free: 101.2 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)