Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.564/2.564, allocations: 284.8 MB / 292.1 MB, free: 10.75 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.001636/0.001636, allocations: 185.2 kB / 360.3 MB, free: 7.539 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.778/1.778, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.001326/0.001325, allocations: 81.31 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.289/0.2903, allocations: 121.4 MB / 0.8502 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.9372, allocations: 115.2 MB / 0.9627 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.381/6.318, allocations: 2.134 GB / 3.097 GB, free: 289.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/6.319, allocations: 85.72 kB / 3.097 GB, free: 289.7 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: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 9.86/16.18, allocations: 2.041 GB / 5.138 GB, free: 79.73 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/16.18, allocations: 11.53 kB / 5.138 GB, free: 79.73 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/16.2, allocations: 0.9807 MB / 5.139 GB, free: 79.53 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/16.21, allocations: 2.896 MB / 5.141 GB, free: 78.88 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000377/16.21, allocations: 170.4 kB / 5.142 GB, free: 78.8 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001414/16.21, allocations: 188.1 kB / 5.142 GB, free: 78.8 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009908/16.22, allocations: 2.491 MB / 5.144 GB, free: 78.78 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01254/16.24, allocations: 2.803 MB / 5.147 GB, free: 78.54 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/16.24, allocations: 3.094 kB / 5.147 GB, free: 78.54 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00102/16.24, allocations: 7.875 kB / 5.147 GB, free: 78.53 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/16.24, allocations: 112.7 kB / 5.147 GB, free: 78.52 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03216/16.27, allocations: 13.13 MB / 5.16 GB, free: 71.05 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004464/16.27, allocations: 1.671 MB / 5.162 GB, free: 71 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/16.28, allocations: 1.04 MB / 5.163 GB, free: 70.98 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007843/16.28, allocations: 328.3 kB / 5.163 GB, free: 70.7 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/16.28, allocations: 60.28 kB / 5.163 GB, free: 70.66 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=182): time 4.569e-06/16.28, allocations: 0 / 5.163 GB, free: 70.66 MB / 0.9948 GB Notification: Performance of matching and sorting (n=182): time 0.008177/16.29, allocations: 1.95 MB / 5.165 GB, free: 70.45 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/16.29, allocations: 77.56 kB / 5.165 GB, free: 70.39 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003603/16.29, allocations: 1.425 MB / 5.166 GB, free: 70.18 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008668/16.29, allocations: 29.39 kB / 5.166 GB, free: 70.15 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001554/16.29, allocations: 0.9952 MB / 5.167 GB, free: 69.57 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002634/16.29, allocations: 0.624 MB / 5.168 GB, free: 69.16 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000438/16.3, allocations: 2.219 kB / 5.168 GB, free: 69.16 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0003957/16.3, allocations: 381.8 kB / 5.168 GB, free: 68.86 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003797/16.3, allocations: 0.7425 MB / 5.169 GB, free: 68.85 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004839/16.3, allocations: 1.402 MB / 5.17 GB, free: 68.08 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00517/16.31, allocations: 1.022 MB / 5.171 GB, free: 68.04 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.689e-05/16.31, allocations: 7.219 kB / 5.171 GB, free: 68.04 MB / 0.9948 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008811/16.32, allocations: 2.271 MB / 5.174 GB, free: 67.78 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001664/16.32, allocations: 5.474 MB / 5.179 GB, free: 61.92 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.142e-05/16.32, allocations: 13.84 kB / 5.179 GB, free: 61.92 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.178e-05/16.32, allocations: 24.06 kB / 5.179 GB, free: 61.92 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005671/16.33, allocations: 0.5162 MB / 5.18 GB, free: 61.89 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/16.33, allocations: 4.196 MB / 5.184 GB, free: 57.79 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006425/16.34, allocations: 311.8 kB / 5.184 GB, free: 57.7 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007316/16.34, allocations: 98.25 kB / 5.184 GB, free: 57.69 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/16.34, allocations: 3.281 kB / 5.184 GB, free: 57.69 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006824/16.34, allocations: 1.967 MB / 5.186 GB, free: 57.58 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.636e-05/16.34, allocations: 16.88 kB / 5.186 GB, free: 57.58 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001163/16.34, allocations: 24.41 kB / 5.186 GB, free: 57.58 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005892/16.35, allocations: 478.6 kB / 5.186 GB, free: 57.55 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-05/16.35, allocations: 29.91 kB / 5.186 GB, free: 57.55 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008312/16.36, allocations: 288.5 kB / 5.187 GB, free: 57.47 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008622/16.36, allocations: 86.58 kB / 5.187 GB, free: 57.47 MB / 0.9948 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.001559/16.36, allocations: 161.1 kB / 5.187 GB, free: 57.32 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/16.36, allocations: 252.4 kB / 5.187 GB, free: 57.2 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007481/16.37, allocations: 1.954 MB / 5.189 GB, free: 57.09 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.69e-05/16.37, allocations: 20.56 kB / 5.189 GB, free: 57.09 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/16.37, allocations: 3.969 kB / 5.189 GB, free: 57.09 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005289/16.37, allocations: 1.767 MB / 5.191 GB, free: 56.79 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/16.39, allocations: 4.704 MB / 5.195 GB, free: 56.01 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/16.39, allocations: 2.812 kB / 5.195 GB, free: 56.01 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005197/16.4, allocations: 0.5075 MB / 5.196 GB, free: 55.98 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.59e-05/16.4, allocations: 14.11 kB / 5.196 GB, free: 55.98 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004134/16.4, allocations: 32.19 kB / 5.196 GB, free: 55.96 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/16.4, allocations: 4.146 MB / 5.2 GB, free: 51.82 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.873e-05/16.4, allocations: 2.938 kB / 5.2 GB, free: 51.82 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008667/16.41, allocations: 3.45 MB / 5.203 GB, free: 50.11 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0127/16.42, allocations: 5.275 MB / 5.209 GB, free: 47.27 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003011/16.42, allocations: 0.56 MB / 5.209 GB, free: 46.91 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/16.43, allocations: 15.75 kB / 5.209 GB, free: 46.91 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005711/16.43, allocations: 216.8 kB / 5.209 GB, free: 46.89 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008747/16.43, allocations: 108 kB / 5.209 GB, free: 46.87 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003793/16.43, allocations: 71.89 kB / 5.21 GB, free: 46.86 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.002782/16.43, allocations: 1.06 MB / 5.211 GB, free: 46.41 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.01629/16.45, allocations: 3.151 MB / 5.214 GB, free: 44.7 MB / 0.9948 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.01161/16.46, allocations: 5.227 MB / 5.219 GB, free: 42.34 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.01704/16.48, allocations: 3.171 MB / 5.222 GB, free: 40.49 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 2.035e-05/16.48, allocations: 3.844 kB / 5.222 GB, free: 40.49 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.003282/16.48, allocations: 0.9922 MB / 5.223 GB, free: 39.59 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0146/16.5, allocations: 1.395 MB / 5.224 GB, free: 38.64 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/16.52, allocations: 5.473 MB / 5.23 GB, free: 34.3 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005467/16.52, allocations: 2.531 MB / 5.232 GB, free: 32.3 MB / 0.9948 GB Notification: Performance of SimCode: time 1.483e-06/16.52, allocations: 4 kB / 5.232 GB, free: 32.3 MB / 0.9948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_8.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)