Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") [: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 10.0.0-master/package.mo): time 2.039/2.039, allocations: 390.4 MB / 397.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001087, allocations: 187 kB / 490.8 MB, free: 1.883 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 0.7863 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009234, allocations: 101.5 kB / 0.9264 GB, free: 14.11 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.685e-06/7.705e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2655, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.566/4.831, allocations: 2.155 GB / 3.366 GB, free: 151.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/4.831, allocations: 83.8 kB / 3.367 GB, free: 151.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.697/7.528, allocations: 0.6574 GB / 4.024 GB, free: 258.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001114/7.529, allocations: 35.88 kB / 4.024 GB, free: 258.1 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00467/7.533, allocations: 1.506 MB / 4.025 GB, free: 257.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/7.533, allocations: 7.625 kB / 4.025 GB, free: 257.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002886/7.536, allocations: 0.5965 MB / 4.026 GB, free: 257.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02916/7.565, allocations: 13.2 MB / 4.039 GB, free: 256.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001167/7.567, allocations: 321.7 kB / 4.039 GB, free: 256.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/7.567, allocations: 44.22 kB / 4.039 GB, free: 256.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001383/7.568, allocations: 0.7338 MB / 4.04 GB, free: 256.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/7.57, allocations: 0.9039 MB / 4.041 GB, free: 256.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/7.57, allocations: 0 / 4.041 GB, free: 256.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/7.57, allocations: 3.938 kB / 4.041 GB, free: 256.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/7.57, allocations: 34.95 kB / 4.041 GB, free: 256.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006353/7.576, allocations: 3.174 MB / 4.044 GB, free: 255.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008603/7.577, allocations: 0.54 MB / 4.044 GB, free: 255.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/7.578, allocations: 357.8 kB / 4.045 GB, free: 255.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008326/7.578, allocations: 1.029 MB / 4.046 GB, free: 254.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/7.579, allocations: 473.2 kB / 4.046 GB, free: 254.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 3.827e-06/7.579, allocations: 3.844 kB / 4.046 GB, free: 254.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.00183/7.581, allocations: 0.7664 MB / 4.047 GB, free: 254.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/7.581, allocations: 136.6 kB / 4.047 GB, free: 254.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008072/7.582, allocations: 0.6542 MB / 4.048 GB, free: 254.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/7.582, allocations: 29.55 kB / 4.048 GB, free: 254.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/7.582, allocations: 333 kB / 4.048 GB, free: 253.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/7.582, allocations: 182.5 kB / 4.048 GB, free: 253.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/7.582, allocations: 0 / 4.048 GB, free: 253.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.944e-05/7.582, allocations: 328.5 kB / 4.049 GB, free: 253.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004165/7.583, allocations: 309.7 kB / 4.049 GB, free: 253.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/7.583, allocations: 0.5038 MB / 4.049 GB, free: 253.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008187/7.584, allocations: 416.8 kB / 4.05 GB, free: 253.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/7.584, allocations: 3.938 kB / 4.05 GB, free: 253.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001554/7.586, allocations: 0.8904 MB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/7.586, allocations: 10.69 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/7.586, allocations: 3.188 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/7.586, allocations: 6.812 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/7.587, allocations: 225.7 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/7.587, allocations: 8.703 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/7.588, allocations: 283.5 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/7.589, allocations: 53.44 kB / 4.051 GB, free: 253.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0002622/7.589, allocations: 155.7 kB / 4.051 GB, free: 253.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/7.589, allocations: 96.72 kB / 4.051 GB, free: 253 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/7.591, allocations: 0.8274 MB / 4.052 GB, free: 252.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/7.591, allocations: 10.5 kB / 4.052 GB, free: 252.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/7.591, allocations: 0 / 4.052 GB, free: 252.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/7.591, allocations: 7.453 kB / 4.052 GB, free: 252.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004665/7.596, allocations: 2.979 MB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/7.596, allocations: 7.312 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/7.596, allocations: 134.9 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-05/7.596, allocations: 14.03 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.471e-05/7.596, allocations: 17.83 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.366e-05/7.596, allocations: 11.7 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.458e-05/7.596, allocations: 15.47 kB / 4.055 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001987/7.598, allocations: 1.538 MB / 4.057 GB, free: 251.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/7.599, allocations: 307.5 kB / 4.057 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/7.599, allocations: 18.2 kB / 4.057 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/7.6, allocations: 131.3 kB / 4.057 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/7.601, allocations: 52.31 kB / 4.057 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/7.601, allocations: 43.95 kB / 4.057 GB, free: 251.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0008354/7.602, allocations: 0.4989 MB / 4.058 GB, free: 251 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002142/7.604, allocations: 416.1 kB / 4.058 GB, free: 251 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.003178/7.607, allocations: 1.773 MB / 4.06 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001371/7.608, allocations: 0.7666 MB / 4.061 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/7.608, allocations: 3.812 kB / 4.061 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005222/7.609, allocations: 445.3 kB / 4.061 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/7.611, allocations: 336.8 kB / 4.062 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/7.614, allocations: 1.525 MB / 4.063 GB, free: 249.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008292/7.614, allocations: 1.176 MB / 4.064 GB, free: 249.2 MB / 1.151 GB Notification: Performance of SimCode: time 8.52e-07/7.614, allocations: 0 / 4.064 GB, free: 249.2 MB / 1.151 GB Notification: Performance of Templates: time 0.03771/7.652, allocations: 25.34 MB / 4.089 GB, free: 248.4 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches