Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.205/1.205, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.0009836/0.0009836, allocations: 189.2 kB / 316 MB, free: 3.504 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.103/1.103, allocations: 205.2 MB / 0.5667 GB, free: 15.66 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.0008525/0.0008526, allocations: 86.59 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.104e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1882, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.254/4.442, allocations: 2.431 GB / 3.316 GB, free: 317.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/4.443, allocations: 79.98 kB / 3.316 GB, free: 317.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.341/5.784, allocations: 0.632 GB / 3.948 GB, free: 21.28 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.326e-05/5.784, allocations: 35.97 kB / 3.948 GB, free: 21.24 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002986/5.787, allocations: 1.43 MB / 3.949 GB, free: 19.76 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/5.787, allocations: 8.031 kB / 3.949 GB, free: 19.75 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002576/5.789, allocations: 0.5839 MB / 3.95 GB, free: 19.17 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0234/5.813, allocations: 12.77 MB / 3.962 GB, free: 6.219 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00109/5.814, allocations: 321 kB / 3.963 GB, free: 5.906 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/5.814, allocations: 48 kB / 3.963 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001192/5.815, allocations: 0.7686 MB / 3.963 GB, free: 5.086 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/5.816, allocations: 0.8832 MB / 3.964 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/5.816, allocations: 4 kB / 3.964 GB, free: 4.164 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.053e-05/5.816, allocations: 7.938 kB / 3.964 GB, free: 4.156 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.521e-05/5.817, allocations: 41.23 kB / 3.964 GB, free: 4.113 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005548/5.822, allocations: 3.26 MB / 3.968 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000865/5.823, allocations: 0.5621 MB / 3.968 GB, free: 200 kB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2697/6.093, allocations: 362.4 kB / 3.968 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007549/6.093, allocations: 1.032 MB / 3.969 GB, free: 232.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006341/6.094, allocations: 481.6 kB / 3.97 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=58): time 3.326e-06/6.094, allocations: 0 / 3.97 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58): time 0.001736/6.096, allocations: 0.7864 MB / 3.971 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/6.096, allocations: 143.4 kB / 3.971 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/6.097, allocations: 0.6566 MB / 3.971 GB, free: 232.4 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.506e-05/6.097, allocations: 29.42 kB / 3.972 GB, free: 232.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/6.097, allocations: 322.1 kB / 3.972 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/6.097, allocations: 190.7 kB / 3.972 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/6.097, allocations: 0 / 3.972 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.041e-05/6.097, allocations: 324.3 kB / 3.972 GB, free: 231.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/6.098, allocations: 327.9 kB / 3.973 GB, free: 231.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/6.098, allocations: 0.5106 MB / 3.973 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007318/6.099, allocations: 437.3 kB / 3.974 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/6.099, allocations: 0 / 3.974 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001443/6.1, allocations: 0.9246 MB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/6.1, allocations: 7.812 kB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/6.1, allocations: 7.156 kB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/6.1, allocations: 7.625 kB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/6.101, allocations: 231.6 kB / 3.975 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/6.101, allocations: 7 kB / 3.975 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/6.103, allocations: 294.1 kB / 3.975 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/6.103, allocations: 46.88 kB / 3.975 GB, free: 231.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (69): * Single equations (assignments): 68 * 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.0001723/6.103, allocations: 161.5 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/6.103, allocations: 93.47 kB / 3.975 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/6.105, allocations: 0.8493 MB / 3.976 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/6.105, allocations: 7.875 kB / 3.976 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/6.105, allocations: 5.359 kB / 3.976 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/6.105, allocations: 7.453 kB / 3.976 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003495/6.108, allocations: 3.048 MB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/6.108, allocations: 7.156 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006319/6.109, allocations: 137.7 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/6.109, allocations: 21.22 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.697e-05/6.109, allocations: 19.98 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.176e-06/6.109, allocations: 19.73 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/6.109, allocations: 9.562 kB / 3.979 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001287/6.11, allocations: 1.569 MB / 3.981 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/6.111, allocations: 312.7 kB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/6.111, allocations: 16.53 kB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/6.112, allocations: 134 kB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/6.112, allocations: 51.34 kB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.722e-05/6.112, allocations: 46.52 kB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0004803/6.113, allocations: 0.504 MB / 3.982 GB, free: 229.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001253/6.114, allocations: 420 kB / 3.982 GB, free: 229.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (57): * Single equations (assignments): 52 * 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.00179/6.116, allocations: 1.76 MB / 3.984 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001002/6.117, allocations: 0.7868 MB / 3.985 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/6.117, allocations: 0 / 3.985 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004561/6.117, allocations: 454.5 kB / 3.985 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/6.119, allocations: 360.5 kB / 3.986 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/6.121, allocations: 1.509 MB / 3.987 GB, free: 228.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007394/6.122, allocations: 1.193 MB / 3.988 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.192e-06/6.122, allocations: 0 / 3.988 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.03171/6.154, allocations: 25.56 MB / 4.013 GB, free: 227 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches