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: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.195/1.195, allocations: 249.4 MB / 256.7 MB, free: 7.082 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.0009471/0.0009472, allocations: 169.3 kB / 316 MB, free: 3.543 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.057/1.057, allocations: 205.2 MB / 0.5667 GB, free: 15.6 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.000835/0.0008348, allocations: 90.84 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.342e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1593, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.629/3.789, allocations: 2.254 GB / 3.138 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/3.789, allocations: 91.94 kB / 3.138 GB, free: 145 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.362/9.151, allocations: 1.983 GB / 5.121 GB, free: 88 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001975/9.151, allocations: 104.4 kB / 5.121 GB, free: 87.99 MB / 0.9323 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 0.006077/9.157, allocations: 3.481 MB / 5.125 GB, free: 86.63 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/9.157, allocations: 11.59 kB / 5.125 GB, free: 86.63 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005237/9.163, allocations: 0.9797 MB / 5.126 GB, free: 86.43 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005387/9.168, allocations: 2.911 MB / 5.128 GB, free: 85.85 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/9.168, allocations: 178.3 kB / 5.129 GB, free: 85.78 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/9.168, allocations: 177.7 kB / 5.129 GB, free: 85.77 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003541/9.172, allocations: 2.516 MB / 5.131 GB, free: 85.76 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00379/9.176, allocations: 2.834 MB / 5.134 GB, free: 85.52 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.716e-05/9.176, allocations: 2.312 kB / 5.134 GB, free: 85.52 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/9.176, allocations: 3.906 kB / 5.134 GB, free: 85.52 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.959e-05/9.176, allocations: 105.8 kB / 5.134 GB, free: 85.51 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/9.189, allocations: 13.16 MB / 5.147 GB, free: 78.18 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/9.191, allocations: 1.664 MB / 5.149 GB, free: 78.14 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/9.192, allocations: 1.026 MB / 5.15 GB, free: 78.12 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004171/9.192, allocations: 331.9 kB / 5.15 GB, free: 77.83 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/9.192, allocations: 62.59 kB / 5.15 GB, free: 77.79 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=182): time 3.426e-06/9.192, allocations: 0 / 5.15 GB, free: 77.79 MB / 0.9323 GB Notification: Performance of matching and sorting (n=182): time 0.00355/9.196, allocations: 1.93 MB / 5.152 GB, free: 77.59 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/9.196, allocations: 71.31 kB / 5.152 GB, free: 77.52 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/9.197, allocations: 1.44 MB / 5.153 GB, free: 77.31 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001402/9.198, allocations: 29.61 kB / 5.153 GB, free: 77.28 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/9.198, allocations: 1.007 MB / 5.154 GB, free: 76.71 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005583/9.199, allocations: 0.6187 MB / 5.155 GB, free: 76.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/9.199, allocations: 0 / 5.155 GB, free: 76.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.335e-05/9.199, allocations: 388.3 kB / 5.155 GB, free: 75.99 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008873/9.2, allocations: 0.7348 MB / 5.156 GB, free: 75.98 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/9.201, allocations: 1.372 MB / 5.157 GB, free: 75.25 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/9.202, allocations: 1.001 MB / 5.158 GB, free: 75.23 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.423e-06/9.202, allocations: 6.406 kB / 5.158 GB, free: 75.23 MB / 0.9323 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.002763/9.205, allocations: 2.252 MB / 5.161 GB, free: 75.03 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.00085/9.206, allocations: 5.46 MB / 5.166 GB, free: 69.19 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/9.206, allocations: 13.53 kB / 5.166 GB, free: 69.19 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.086e-05/9.206, allocations: 27.34 kB / 5.166 GB, free: 69.19 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/9.208, allocations: 0.5112 MB / 5.166 GB, free: 69.19 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/9.209, allocations: 4.202 MB / 5.171 GB, free: 65.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/9.212, allocations: 318.5 kB / 5.171 GB, free: 65 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/9.212, allocations: 90.25 kB / 5.171 GB, free: 65 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/9.213, allocations: 6.781 kB / 5.171 GB, free: 65 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002457/9.215, allocations: 1.943 MB / 5.173 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/9.215, allocations: 10.22 kB / 5.173 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/9.215, allocations: 28.94 kB / 5.173 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/9.217, allocations: 479 kB / 5.173 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/9.217, allocations: 29.12 kB / 5.173 GB, free: 64.96 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002733/9.219, allocations: 299.1 kB / 5.174 GB, free: 64.89 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/9.22, allocations: 93.62 kB / 5.174 GB, free: 64.88 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.0004039/9.22, allocations: 161.2 kB / 5.174 GB, free: 64.77 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003501/9.22, allocations: 254.1 kB / 5.174 GB, free: 64.64 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/9.223, allocations: 1.934 MB / 5.176 GB, free: 64.53 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/9.223, allocations: 16.66 kB / 5.176 GB, free: 64.53 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/9.223, allocations: 0 / 5.176 GB, free: 64.53 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001852/9.225, allocations: 1.752 MB / 5.178 GB, free: 64.22 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0065/9.231, allocations: 4.704 MB / 5.182 GB, free: 63.72 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/9.231, allocations: 3.938 kB / 5.182 GB, free: 63.72 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/9.234, allocations: 0.5079 MB / 5.183 GB, free: 63.72 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.485e-05/9.234, allocations: 10.97 kB / 5.183 GB, free: 63.72 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/9.234, allocations: 35.64 kB / 5.183 GB, free: 63.72 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/9.235, allocations: 4.146 MB / 5.187 GB, free: 59.62 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/9.235, allocations: 10.59 kB / 5.187 GB, free: 59.62 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003465/9.238, allocations: 3.414 MB / 5.19 GB, free: 58.89 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/9.24, allocations: 0.5734 MB / 5.191 GB, free: 58.64 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/9.24, allocations: 14.23 kB / 5.191 GB, free: 58.64 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/9.242, allocations: 231.3 kB / 5.191 GB, free: 58.62 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/9.242, allocations: 106.9 kB / 5.191 GB, free: 58.61 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/9.242, allocations: 72.58 kB / 5.191 GB, free: 58.61 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001258/9.244, allocations: 1.067 MB / 5.192 GB, free: 58.47 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.004156/9.248, allocations: 1.955 MB / 5.194 GB, free: 58.2 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.005753/9.254, allocations: 5.23 MB / 5.199 GB, free: 55.93 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.00489/9.258, allocations: 3.14 MB / 5.202 GB, free: 55.88 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/9.259, allocations: 3.531 kB / 5.202 GB, free: 55.88 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/9.26, allocations: 0.9761 MB / 5.203 GB, free: 55.88 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006277/9.266, allocations: 1.407 MB / 5.205 GB, free: 55.84 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007704/9.274, allocations: 5.474 MB / 5.21 GB, free: 54.68 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001956/9.276, allocations: 2.49 MB / 5.212 GB, free: 53.91 MB / 0.9323 GB Notification: Performance of SimCode: time 6.51e-07/9.276, allocations: 0 / 5.212 GB, free: 53.91 MB / 0.9323 GB Notification: Performance of Templates: time 0.1138/9.39, allocations: 81.43 MB / 5.292 GB, free: 23.11 MB / 0.9323 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches