Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.577/1.577, allocations: 289.8 MB / 297 MB, free: 6.633 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.001232/0.001232, allocations: 177.3 kB / 366.3 MB, free: 1.938 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.633/1.633, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.001007/0.001006, allocations: 89.05 kB / 0.7396 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.024e-05/1.046e-05, allocations: 4 kB / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7195/0.7196, allocations: 116.3 MB / 0.9726 GB, free: 68.72 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.879/5.598, allocations: 2.135 GB / 3.108 GB, free: 328 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/5.599, allocations: 92.39 kB / 3.108 GB, free: 327.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 6.959/12.56, allocations: 2.037 GB / 5.145 GB, free: 98.1 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0002707/12.56, allocations: 95.36 kB / 5.145 GB, free: 98.09 MB / 1.01 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 0.01093/12.57, allocations: 3.473 MB / 5.149 GB, free: 96.36 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/12.57, allocations: 9.531 kB / 5.149 GB, free: 96.36 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007426/12.58, allocations: 0.9849 MB / 5.15 GB, free: 96.16 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00861/12.58, allocations: 2.887 MB / 5.152 GB, free: 95.51 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/12.58, allocations: 173.5 kB / 5.153 GB, free: 95.43 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006046/12.59, allocations: 176.4 kB / 5.153 GB, free: 95.43 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00485/12.59, allocations: 2.503 MB / 5.155 GB, free: 95.16 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005005/12.6, allocations: 2.804 MB / 5.158 GB, free: 94.11 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.972e-05/12.6, allocations: 8.578 kB / 5.158 GB, free: 94.1 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/12.6, allocations: 2.375 kB / 5.158 GB, free: 94.1 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/12.6, allocations: 106.2 kB / 5.158 GB, free: 94.09 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/12.61, allocations: 13.15 MB / 5.171 GB, free: 83.6 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/12.62, allocations: 1.672 MB / 5.173 GB, free: 82.86 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/12.62, allocations: 1.04 MB / 5.174 GB, free: 82.38 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000497/12.62, allocations: 335.8 kB / 5.174 GB, free: 82.07 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/12.62, allocations: 59.09 kB / 5.174 GB, free: 82.01 MB / 1.01 GB Notification: Performance of pre-optimization done (n=182): time 3.128e-05/12.62, allocations: 0 / 5.174 GB, free: 82.01 MB / 1.01 GB Notification: Performance of matching and sorting (n=182): time 0.004258/12.62, allocations: 1.939 MB / 5.176 GB, free: 80.17 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/12.62, allocations: 75.56 kB / 5.176 GB, free: 80.09 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002091/12.62, allocations: 1.427 MB / 5.177 GB, free: 78.64 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.0002285/12.62, allocations: 32.11 kB / 5.177 GB, free: 78.6 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004962/12.62, allocations: 0.9931 MB / 5.178 GB, free: 77.58 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007444/12.63, allocations: 0.6255 MB / 5.179 GB, free: 76.95 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/12.63, allocations: 0 / 5.179 GB, free: 76.95 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001131/12.63, allocations: 385.8 kB / 5.179 GB, free: 76.57 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/12.63, allocations: 0.7459 MB / 5.18 GB, free: 75.82 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/12.63, allocations: 1.402 MB / 5.181 GB, free: 74.14 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001618/12.63, allocations: 1.02 MB / 5.182 GB, free: 73.14 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/12.63, allocations: 4 kB / 5.182 GB, free: 73.14 MB / 1.01 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004647/12.63, allocations: 2.278 MB / 5.185 GB, free: 70.86 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.002665/12.64, allocations: 5.463 MB / 5.19 GB, free: 64.88 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/12.64, allocations: 12 kB / 5.19 GB, free: 64.87 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.938e-05/12.64, allocations: 31.72 kB / 5.19 GB, free: 64.84 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/12.64, allocations: 0.5169 MB / 5.191 GB, free: 64.33 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/12.64, allocations: 4.193 MB / 5.195 GB, free: 59.98 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005812/12.65, allocations: 316.8 kB / 5.195 GB, free: 59.69 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004942/12.65, allocations: 95.17 kB / 5.195 GB, free: 59.6 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/12.65, allocations: 4 kB / 5.195 GB, free: 59.6 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003462/12.65, allocations: 1.958 MB / 5.197 GB, free: 57.65 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/12.65, allocations: 16 kB / 5.197 GB, free: 57.63 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.16e-05/12.65, allocations: 26.08 kB / 5.197 GB, free: 57.61 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/12.65, allocations: 471.3 kB / 5.197 GB, free: 57.15 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/12.65, allocations: 34.14 kB / 5.197 GB, free: 57.12 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/12.66, allocations: 289.4 kB / 5.198 GB, free: 56.85 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/12.66, allocations: 91.92 kB / 5.198 GB, free: 56.76 MB / 1.01 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.0008279/12.66, allocations: 160.3 kB / 5.198 GB, free: 56.6 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/12.66, allocations: 253 kB / 5.198 GB, free: 56.35 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/12.66, allocations: 1.951 MB / 5.2 GB, free: 54.4 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/12.66, allocations: 23.94 kB / 5.2 GB, free: 54.38 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/12.66, allocations: 2.25 kB / 5.2 GB, free: 54.38 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002257/12.67, allocations: 1.769 MB / 5.202 GB, free: 52.55 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009635/12.68, allocations: 4.702 MB / 5.206 GB, free: 47.82 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/12.68, allocations: 4 kB / 5.206 GB, free: 47.81 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/12.68, allocations: 0.5138 MB / 5.207 GB, free: 47.32 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-05/12.68, allocations: 15.81 kB / 5.207 GB, free: 47.3 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/12.68, allocations: 27.98 kB / 5.207 GB, free: 47.28 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/12.68, allocations: 4.151 MB / 5.211 GB, free: 42.97 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.545e-06/12.68, allocations: 4.031 kB / 5.211 GB, free: 42.97 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00415/12.68, allocations: 3.453 MB / 5.214 GB, free: 39.39 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/12.69, allocations: 0.556 MB / 5.215 GB, free: 38.81 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005657/12.69, allocations: 11.98 kB / 5.215 GB, free: 38.8 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002701/12.69, allocations: 219.2 kB / 5.215 GB, free: 38.61 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/12.69, allocations: 101.8 kB / 5.215 GB, free: 38.51 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/12.69, allocations: 71.95 kB / 5.215 GB, free: 38.44 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.00156/12.69, allocations: 1.058 MB / 5.216 GB, free: 37.37 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.005668/12.7, allocations: 1.94 MB / 5.218 GB, free: 35.42 MB / 1.01 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.006513/12.7, allocations: 5.221 MB / 5.223 GB, free: 30.73 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.005836/12.71, allocations: 3.174 MB / 5.226 GB, free: 27.57 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/12.71, allocations: 4 kB / 5.226 GB, free: 27.57 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.001539/12.71, allocations: 0.9929 MB / 5.227 GB, free: 26.58 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007723/12.72, allocations: 1.397 MB / 5.229 GB, free: 25.22 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/12.73, allocations: 5.46 MB / 5.234 GB, free: 19.77 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002131/12.73, allocations: 2.48 MB / 5.237 GB, free: 17.25 MB / 1.01 GB Notification: Performance of SimCode: time 5.92e-07/12.73, allocations: 0 / 5.237 GB, free: 17.25 MB / 1.01 GB Notification: Performance of Templates: time 0.6214/13.35, allocations: 81.27 MB / 5.316 GB, free: 189 MB / 1.026 GB make -j1 -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)