Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",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 7.0.3-maint.7.0.x/package.mo): time 1.256/1.256, allocations: 249.4 MB / 256.7 MB, free: 6.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00133/0.00133, allocations: 181.3 kB / 316 MB, free: 3.52 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008383/0.0008383, allocations: 83.33 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3259/0.3268, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.5018, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.01/4.512, allocations: 2.254 GB / 3.138 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/4.513, allocations: 87.95 kB / 3.138 GB, free: 148.5 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 6.209/10.72, allocations: 1.986 GB / 5.125 GB, free: 86.71 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/10.72, allocations: 8.438 kB / 5.125 GB, free: 86.71 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006662/10.73, allocations: 0.9833 MB / 5.126 GB, free: 86.51 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008017/10.74, allocations: 2.921 MB / 5.128 GB, free: 85.93 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002636/10.74, allocations: 175 kB / 5.129 GB, free: 85.86 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/10.74, allocations: 180.2 kB / 5.129 GB, free: 85.86 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005523/10.74, allocations: 2.51 MB / 5.131 GB, free: 85.84 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006162/10.75, allocations: 2.833 MB / 5.134 GB, free: 85.6 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.416e-05/10.75, allocations: 6.719 kB / 5.134 GB, free: 85.6 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004182/10.75, allocations: 3.531 kB / 5.134 GB, free: 85.6 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.865e-05/10.75, allocations: 104.8 kB / 5.134 GB, free: 85.59 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01893/10.77, allocations: 13.17 MB / 5.147 GB, free: 78.26 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002665/10.77, allocations: 1.666 MB / 5.149 GB, free: 78.21 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/10.77, allocations: 1.023 MB / 5.15 GB, free: 78.19 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000526/10.77, allocations: 331.3 kB / 5.15 GB, free: 77.91 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/10.77, allocations: 61.19 kB / 5.15 GB, free: 77.87 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=182): time 3.717e-06/10.77, allocations: 0 / 5.15 GB, free: 77.87 MB / 0.9323 GB Notification: Performance of matching and sorting (n=182): time 0.004722/10.78, allocations: 1.929 MB / 5.152 GB, free: 77.66 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/10.78, allocations: 71.44 kB / 5.152 GB, free: 77.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003023/10.78, allocations: 1.438 MB / 5.153 GB, free: 77.39 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0003419/10.78, allocations: 32.45 kB / 5.153 GB, free: 77.36 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007355/10.78, allocations: 0.9999 MB / 5.154 GB, free: 76.79 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009183/10.78, allocations: 0.6249 MB / 5.155 GB, free: 76.38 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/10.78, allocations: 0 / 5.155 GB, free: 76.38 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001556/10.78, allocations: 386.9 kB / 5.155 GB, free: 76.07 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/10.79, allocations: 0.7329 MB / 5.156 GB, free: 76.06 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/10.79, allocations: 1.373 MB / 5.157 GB, free: 75.33 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/10.79, allocations: 1.001 MB / 5.158 GB, free: 75.3 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/10.79, allocations: 3.594 kB / 5.158 GB, free: 75.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003724/10.79, allocations: 2.256 MB / 5.161 GB, free: 75.11 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001152/10.79, allocations: 5.453 MB / 5.166 GB, free: 69.27 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/10.79, allocations: 15.34 kB / 5.166 GB, free: 69.27 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/10.79, allocations: 31.16 kB / 5.166 GB, free: 69.27 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/10.8, allocations: 0.5166 MB / 5.166 GB, free: 69.27 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/10.8, allocations: 4.193 MB / 5.171 GB, free: 65.18 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003229/10.8, allocations: 319.4 kB / 5.171 GB, free: 65.08 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/10.8, allocations: 93.06 kB / 5.171 GB, free: 65.08 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/10.8, allocations: 6.5 kB / 5.171 GB, free: 65.08 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00277/10.8, allocations: 1.945 MB / 5.173 GB, free: 65.04 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/10.8, allocations: 13.52 kB / 5.173 GB, free: 65.04 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/10.8, allocations: 26.44 kB / 5.173 GB, free: 65.04 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/10.81, allocations: 478.1 kB / 5.173 GB, free: 65.04 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-05/10.81, allocations: 31.88 kB / 5.173 GB, free: 65.04 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/10.81, allocations: 289.1 kB / 5.174 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/10.81, allocations: 93.67 kB / 5.174 GB, free: 64.96 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004955/10.81, allocations: 159.3 kB / 5.174 GB, free: 64.85 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007249/10.81, allocations: 259.2 kB / 5.174 GB, free: 64.72 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/10.81, allocations: 1.939 MB / 5.176 GB, free: 64.61 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/10.81, allocations: 17.28 kB / 5.176 GB, free: 64.61 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/10.81, allocations: 2.078 kB / 5.176 GB, free: 64.61 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002069/10.82, allocations: 1.75 MB / 5.178 GB, free: 64.3 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008896/10.82, allocations: 4.702 MB / 5.182 GB, free: 63.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/10.82, allocations: 3.938 kB / 5.182 GB, free: 63.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002415/10.83, allocations: 0.5087 MB / 5.183 GB, free: 63.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-05/10.83, allocations: 9.219 kB / 5.183 GB, free: 63.8 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/10.83, allocations: 32.25 kB / 5.183 GB, free: 63.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/10.83, allocations: 4.15 MB / 5.187 GB, free: 59.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/10.83, allocations: 4.438 kB / 5.187 GB, free: 59.7 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004181/10.83, allocations: 3.414 MB / 5.19 GB, free: 58.96 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006207/10.84, allocations: 5.227 MB / 5.195 GB, free: 57.84 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/10.84, allocations: 0.5704 MB / 5.196 GB, free: 57.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006328/10.84, allocations: 17.61 kB / 5.196 GB, free: 57.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002736/10.84, allocations: 231.7 kB / 5.196 GB, free: 57.57 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/10.84, allocations: 107.2 kB / 5.196 GB, free: 57.57 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/10.84, allocations: 70.7 kB / 5.196 GB, free: 57.57 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.002092/10.85, allocations: 1.072 MB / 5.197 GB, free: 57.43 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.008914/10.86, allocations: 3.171 MB / 5.201 GB, free: 57.15 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006664/10.86, allocations: 5.224 MB / 5.206 GB, free: 54.89 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.005965/10.87, allocations: 3.138 MB / 5.209 GB, free: 54.84 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/10.87, allocations: 1.625 kB / 5.209 GB, free: 54.84 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001626/10.87, allocations: 0.9846 MB / 5.21 GB, free: 54.83 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007527/10.88, allocations: 1.403 MB / 5.211 GB, free: 54.79 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/10.89, allocations: 5.499 MB / 5.216 GB, free: 53.62 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002578/10.89, allocations: 2.528 MB / 5.219 GB, free: 52.86 MB / 0.9323 GB Notification: Performance of SimCode: time 9.41e-07/10.89, allocations: 3.281 kB / 5.219 GB, free: 52.86 MB / 0.9323 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)