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.5/1.5, allocations: 249.3 MB / 261.8 MB, free: 5.879 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.001193/0.001194, allocations: 184.9 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0008174/0.0008174, allocations: 82.53 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.471e-05/3.481e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3243, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.612/7.936, allocations: 2.431 GB / 3.323 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/7.937, allocations: 78.83 kB / 3.323 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.508/10.44, allocations: 0.6327 GB / 3.956 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.503e-06/10.44, allocations: 0 / 3.956 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002/10.44, allocations: 37.5 kB / 3.956 GB, free: 155.6 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.004828/10.45, allocations: 1.415 MB / 3.957 GB, free: 154.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/10.45, allocations: 9.844 kB / 3.957 GB, free: 154.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003141/10.45, allocations: 0.5356 MB / 3.957 GB, free: 154.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02707/10.48, allocations: 12.73 MB / 3.97 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001275/10.48, allocations: 317.9 kB / 3.97 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004001/10.48, allocations: 75.47 kB / 3.97 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/10.48, allocations: 0.9723 MB / 3.971 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/10.48, allocations: 0 / 3.971 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/10.48, allocations: 32.92 kB / 3.971 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/10.48, allocations: 36.44 kB / 3.971 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/10.49, allocations: 0.8616 MB / 3.972 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00847/10.49, allocations: 3.36 MB / 3.975 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/10.5, allocations: 0.5999 MB / 3.976 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006557/10.5, allocations: 373.5 kB / 3.976 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008836/10.5, allocations: 1.028 MB / 3.977 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008012/10.5, allocations: 488.4 kB / 3.978 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=59): time 5.079e-06/10.5, allocations: 0 / 3.978 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59): time 0.002099/10.5, allocations: 0.8333 MB / 3.979 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/10.5, allocations: 170.8 kB / 3.979 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/10.5, allocations: 0.9445 MB / 3.98 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001557/10.5, allocations: 35.83 kB / 3.98 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/10.5, allocations: 438.6 kB / 3.98 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/10.5, allocations: 195.4 kB / 3.98 GB, free: 151 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/10.5, allocations: 11.97 kB / 3.98 GB, free: 151 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001093/10.5, allocations: 338.8 kB / 3.981 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/10.5, allocations: 304.5 kB / 3.981 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007053/10.5, allocations: 0.5047 MB / 3.982 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005773/10.51, allocations: 384.2 kB / 3.982 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/10.51, allocations: 0 / 3.982 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001751/10.51, allocations: 0.9523 MB / 3.983 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/10.51, allocations: 33.14 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/10.51, allocations: 3.938 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/10.51, allocations: 13.98 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/10.51, allocations: 215.2 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/10.51, allocations: 6.188 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/10.51, allocations: 310.1 kB / 3.983 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/10.51, allocations: 46.8 kB / 3.983 GB, free: 150.3 MB / 0.8698 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 () * 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.0002816/10.51, allocations: 190.8 kB / 3.984 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/10.51, allocations: 119.1 kB / 3.984 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/10.51, allocations: 0.9173 MB / 3.985 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/10.51, allocations: 11.03 kB / 3.985 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/10.51, allocations: 2.156 kB / 3.985 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/10.51, allocations: 7.609 kB / 3.985 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/10.52, allocations: 3.231 MB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/10.52, allocations: 11.77 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/10.52, allocations: 130.4 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/10.52, allocations: 13.12 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.69e-05/10.52, allocations: 33.94 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.56e-05/10.52, allocations: 16.45 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/10.52, allocations: 10.78 kB / 3.988 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/10.52, allocations: 1.706 MB / 3.99 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007258/10.52, allocations: 342.5 kB / 3.99 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/10.52, allocations: 18.56 kB / 3.99 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/10.52, allocations: 133.9 kB / 3.99 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/10.52, allocations: 60.09 kB / 3.99 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/10.52, allocations: 49.64 kB / 3.99 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001569/10.52, allocations: 0.7377 MB / 3.991 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.91e-07/10.52, allocations: 0 / 3.991 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002315/10.53, allocations: 441.2 kB / 3.991 GB, free: 147.8 MB / 0.8698 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) * 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.003378/10.53, allocations: 1.593 MB / 3.993 GB, free: 147.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00161/10.53, allocations: 0.8245 MB / 3.994 GB, free: 147.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/10.53, allocations: 1.781 kB / 3.994 GB, free: 147.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007096/10.53, allocations: 487.3 kB / 3.994 GB, free: 147.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/10.54, allocations: 0.5296 MB / 3.995 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/10.54, allocations: 1.576 MB / 3.996 GB, free: 146.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007396/10.54, allocations: 1.093 MB / 3.997 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00149/10.54, allocations: 279.8 kB / 3.998 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/10.54, allocations: 80.81 kB / 3.998 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of SimCode: time 1.433e-06/10.54, allocations: 0 / 3.998 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of Templates: time 0.05827/10.6, allocations: 40.65 MB / 4.037 GB, free: 143.9 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