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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.378/1.378, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 192 kB / 326.5 MB, free: 2.25 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.735/1.735, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.000901/0.0009011, allocations: 92.67 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003299, allocations: 14.53 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1838, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.022/5.206, allocations: 2.431 GB / 3.331 GB, free: 79.62 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/5.207, allocations: 84.27 kB / 3.331 GB, free: 79.58 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 2.111/7.317, allocations: 0.6339 GB / 3.965 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.472e-06/7.317, allocations: 0 / 3.965 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001908/7.318, allocations: 31.98 kB / 3.965 GB, free: 143.1 MB / 0.8855 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.005323/7.323, allocations: 1.58 MB / 3.967 GB, free: 141.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/7.323, allocations: 8.031 kB / 3.967 GB, free: 141.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/7.326, allocations: 0.5425 MB / 3.967 GB, free: 140.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02485/7.351, allocations: 12.8 MB / 3.98 GB, free: 127.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001141/7.352, allocations: 317.2 kB / 3.98 GB, free: 127.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003257/7.353, allocations: 72 kB / 3.98 GB, free: 127.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002828/7.355, allocations: 1.16 MB / 3.981 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/7.355, allocations: 4 kB / 3.981 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/7.356, allocations: 27.98 kB / 3.981 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-05/7.356, allocations: 37.31 kB / 3.981 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002968/7.359, allocations: 1.231 MB / 3.982 GB, free: 125 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006169/7.365, allocations: 3.354 MB / 3.986 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/7.366, allocations: 0.7153 MB / 3.986 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007866/7.367, allocations: 1.029 MB / 3.987 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009355/7.368, allocations: 0.5268 MB / 3.988 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=59): time 3.807e-06/7.368, allocations: 0 / 3.988 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=59): time 0.002952/7.371, allocations: 1.367 MB / 3.989 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/7.371, allocations: 166.6 kB / 3.989 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/7.373, allocations: 1.08 MB / 3.99 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001486/7.373, allocations: 37.7 kB / 3.991 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/7.374, allocations: 437.8 kB / 3.991 GB, free: 115.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/7.374, allocations: 193.2 kB / 3.991 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/7.374, allocations: 15.94 kB / 3.991 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.228e-05/7.374, allocations: 334 kB / 3.991 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/7.375, allocations: 492.9 kB / 3.992 GB, free: 114.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/7.376, allocations: 0.6787 MB / 3.993 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/7.378, allocations: 0.558 MB / 3.993 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/7.378, allocations: 4 kB / 3.993 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003029/7.381, allocations: 1.307 MB / 3.994 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/7.381, allocations: 41.69 kB / 3.994 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/7.381, allocations: 7.938 kB / 3.994 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/7.381, allocations: 11.95 kB / 3.994 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009851/7.382, allocations: 219.9 kB / 3.995 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/7.382, allocations: 8 kB / 3.995 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/7.384, allocations: 306.8 kB / 3.995 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/7.384, allocations: 43.97 kB / 3.995 GB, free: 111.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 () * Number of clocked 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.0006291/7.385, allocations: 327.5 kB / 3.995 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002965/7.385, allocations: 114.6 kB / 3.995 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/7.387, allocations: 1.042 MB / 3.996 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/7.387, allocations: 8 kB / 3.996 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/7.387, allocations: 3.953 kB / 3.996 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/7.387, allocations: 7.984 kB / 3.996 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004857/7.392, allocations: 3.351 MB / 4 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/7.392, allocations: 8.062 kB / 4 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005932/7.392, allocations: 127.8 kB / 4 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.449e-05/7.392, allocations: 15.94 kB / 4 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/7.393, allocations: 27.98 kB / 4 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/7.393, allocations: 27.92 kB / 4 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/7.393, allocations: 11.94 kB / 4 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/7.395, allocations: 1.819 MB / 4.002 GB, free: 104.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006964/7.395, allocations: 335.4 kB / 4.002 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/7.396, allocations: 23.98 kB / 4.002 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/7.397, allocations: 131.8 kB / 4.002 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/7.397, allocations: 61.88 kB / 4.002 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.37e-05/7.397, allocations: 43.97 kB / 4.002 GB, free: 103.6 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001567/7.399, allocations: 0.8753 MB / 4.003 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.2e-07/7.399, allocations: 0 / 4.003 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001711/7.4, allocations: 435.7 kB / 4.004 GB, free: 102.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * 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.002275/7.403, allocations: 1.591 MB / 4.005 GB, free: 100.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002191/7.405, allocations: 1.058 MB / 4.006 GB, free: 99.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/7.405, allocations: 7.938 kB / 4.006 GB, free: 99.59 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000825/7.406, allocations: 0.5246 MB / 4.007 GB, free: 99.05 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002569/7.408, allocations: 0.5344 MB / 4.007 GB, free: 98.53 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/7.412, allocations: 2.277 MB / 4.009 GB, free: 96.12 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/7.413, allocations: 1.085 MB / 4.01 GB, free: 95 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001272/7.414, allocations: 291.9 kB / 4.011 GB, free: 94.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/7.414, allocations: 87.41 kB / 4.011 GB, free: 94.63 MB / 0.8855 GB Notification: Performance of SimCode: time 1.042e-06/7.414, allocations: 0 / 4.011 GB, free: 94.63 MB / 0.8855 GB Notification: Performance of Templates: time 0.04757/7.462, allocations: 36.99 MB / 4.047 GB, free: 57.75 MB / 0.8855 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