Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008209/0.0008211, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006045/0.006045, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.371/2.371, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004258/0.000426, allocations: 8 kB / 0.8159 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6745/0.675, allocations: 142.4 MB / 0.955 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.213/0.888, allocations: 189.1 MB / 1.14 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01092/0.8989, allocations: 6.928 MB / 1.146 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.9005, allocations: 39.69 kB / 1.147 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001801/0.9023, allocations: 0.5632 MB / 1.147 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006558/0.9089, allocations: 2.187 MB / 1.149 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004073/0.913, allocations: 1.28 MB / 1.15 GB, free: 6.582 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005222/0.9182, allocations: 3.735 MB / 1.154 GB, free: 2.836 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.92, allocations: 0.7677 MB / 1.155 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.9224, allocations: 0.9685 MB / 1.156 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002496/0.9249, allocations: 0.7953 MB / 1.157 GB, free: 296 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003428/0.9252, allocations: 40 kB / 1.157 GB, free: 256 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004367/0.9296, allocations: 2.221 MB / 1.159 GB, free: 14.02 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005579/0.9302, allocations: 310.9 kB / 1.159 GB, free: 13.72 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0009131/0.9311, allocations: 0.5495 MB / 1.16 GB, free: 13.16 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004035/0.9352, allocations: 2.387 MB / 1.162 GB, free: 10.77 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.9352, allocations: 3.984 kB / 1.162 GB, free: 10.76 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9352, allocations: 0 / 1.162 GB, free: 10.76 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.152e-05/0.9352, allocations: 0 / 1.162 GB, free: 10.76 MB / 0.92 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.003411/0.9386, allocations: 1.393 MB / 1.163 GB, free: 9.312 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.9387, allocations: 8.031 kB / 1.163 GB, free: 9.305 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003292/0.942, allocations: 0.5957 MB / 1.164 GB, free: 8.707 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.945, allocations: 0.9962 MB / 1.165 GB, free: 7.668 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001297/0.9464, allocations: 317 kB / 1.165 GB, free: 7.359 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.9467, allocations: 72 kB / 1.165 GB, free: 7.289 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003618/0.9503, allocations: 1.155 MB / 1.166 GB, free: 6.102 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.9504, allocations: 0 / 1.166 GB, free: 6.102 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.9505, allocations: 31.94 kB / 1.166 GB, free: 6.07 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.712e-05/0.9506, allocations: 33.3 kB / 1.166 GB, free: 6.039 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003571/0.9541, allocations: 1.254 MB / 1.168 GB, free: 4.785 MB / 0.92 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006817/0.961, allocations: 3.248 MB / 1.171 GB, free: 1.457 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.9628, allocations: 0.6959 MB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008254/0.9636, allocations: 430.2 kB / 1.172 GB, free: 336 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009037/0.9645, allocations: 1.025 MB / 1.173 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.9656, allocations: 0.5182 MB / 1.173 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 2.765e-06/0.9656, allocations: 0 / 1.173 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.003142/0.9687, allocations: 1.252 MB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.9688, allocations: 140.8 kB / 1.175 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.9711, allocations: 1.219 MB / 1.176 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.9712, allocations: 41.7 kB / 1.176 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/0.9716, allocations: 437.4 kB / 1.176 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.9718, allocations: 189.2 kB / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.972, allocations: 57.69 kB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9721, allocations: 330 kB / 1.177 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.9735, allocations: 492.8 kB / 1.177 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.975, allocations: 0.6406 MB / 1.178 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.9772, allocations: 0.977 MB / 1.179 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.9773, allocations: 0 / 1.179 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003473/0.9807, allocations: 1.295 MB / 1.18 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.9808, allocations: 37.7 kB / 1.18 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.9808, allocations: 4 kB / 1.18 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.9809, allocations: 8 kB / 1.18 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.9819, allocations: 215.7 kB / 1.181 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.9819, allocations: 8 kB / 1.181 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.9837, allocations: 306.1 kB / 1.181 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.9839, allocations: 31.98 kB / 1.181 GB, free: 6.707 MB / 0.9356 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 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006184/0.9845, allocations: 335.3 kB / 1.181 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.9848, allocations: 118.6 kB / 1.181 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/0.987, allocations: 1.004 MB / 1.182 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.9871, allocations: 11.94 kB / 1.182 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.9871, allocations: 0 / 1.182 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.9871, allocations: 3.984 kB / 1.182 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005021/0.9921, allocations: 3.177 MB / 1.185 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.9922, allocations: 4 kB / 1.185 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000617/0.9928, allocations: 119.8 kB / 1.186 GB, free: 1.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.9928, allocations: 12.19 kB / 1.186 GB, free: 1.742 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.9929, allocations: 31.92 kB / 1.186 GB, free: 1.711 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.354e-05/0.9929, allocations: 15.92 kB / 1.186 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.9929, allocations: 12 kB / 1.186 GB, free: 1.684 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.9951, allocations: 1.357 MB / 1.187 GB, free: 216 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006298/0.9958, allocations: 331.5 kB / 1.187 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.996, allocations: 20 kB / 1.187 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.9974, allocations: 131.9 kB / 1.187 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.9975, allocations: 63.7 kB / 1.187 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-05/0.9976, allocations: 39.97 kB / 1.187 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00174/0.9993, allocations: 0.8911 MB / 1.188 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9993, allocations: 0 / 1.188 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001165/1.001, allocations: 295.8 kB / 1.189 GB, free: 14.43 MB / 0.9512 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008266/1.001, allocations: 343.2 kB / 1.189 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002615/1.004, allocations: 1.052 MB / 1.19 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/1.004, allocations: 4 kB / 1.19 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0009671/1.005, allocations: 0.5132 MB / 1.191 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004028/1.009, allocations: 0.5371 MB / 1.191 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/1.013, allocations: 2.37 MB / 1.193 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007825/1.014, allocations: 1.077 MB / 1.194 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.00128/1.015, allocations: 279.9 kB / 1.195 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/1.016, allocations: 75.42 kB / 1.195 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of SimCode: time 1.072e-06/1.016, allocations: 0 / 1.195 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of Templates: time 0.0372/1.053, allocations: 21.14 MB / 1.215 GB, free: 3.129 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches