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.001569/0.001569, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002452/0.002452, allocations: 196.1 kB / 16.14 MB, free: 6.711 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.387/1.387, allocations: 222.9 MB / 239.8 MB, free: 4.605 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.349/2.349, allocations: 390.2 MB / 0.6642 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7564/0.7576, allocations: 140.4 MB / 0.9489 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2066/0.9643, allocations: 191.7 MB / 1.136 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01306/0.9774, allocations: 7 MB / 1.143 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00222/0.9796, allocations: 43.69 kB / 1.143 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.982, allocations: 0.5671 MB / 1.144 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006549/0.9886, allocations: 2.191 MB / 1.146 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003496/0.9921, allocations: 1.277 MB / 1.147 GB, free: 6.719 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004771/0.9969, allocations: 3.738 MB / 1.151 GB, free: 2.969 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.9985, allocations: 0.7854 MB / 1.151 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/1.001, allocations: 0.9764 MB / 1.152 GB, free: 1.191 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002292/1.003, allocations: 0.8153 MB / 1.153 GB, free: 388 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002594/1.003, allocations: 48 kB / 1.153 GB, free: 340 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004788/1.008, allocations: 2.225 MB / 1.155 GB, free: 14.1 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004422/1.009, allocations: 326.8 kB / 1.156 GB, free: 13.78 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0008782/1.01, allocations: 0.5245 MB / 1.156 GB, free: 13.25 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003965/1.014, allocations: 2.423 MB / 1.158 GB, free: 10.82 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/1.014, allocations: 0 / 1.158 GB, free: 10.82 MB / 0.92 GB Notification: Performance of FrontEnd: time 8.12e-07/1.014, allocations: 0 / 1.158 GB, free: 10.82 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.817e-05/1.014, allocations: 0 / 1.158 GB, free: 10.82 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.003417/1.017, allocations: 1.636 MB / 1.16 GB, free: 9.129 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/1.017, allocations: 8.031 kB / 1.16 GB, free: 9.121 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003124/1.02, allocations: 0.5293 MB / 1.161 GB, free: 8.59 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002066/1.022, allocations: 0.983 MB / 1.162 GB, free: 7.562 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001183/1.024, allocations: 281 kB / 1.162 GB, free: 7.289 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/1.024, allocations: 72 kB / 1.162 GB, free: 7.219 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/1.026, allocations: 1.128 MB / 1.163 GB, free: 6.059 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/1.026, allocations: 0 / 1.163 GB, free: 6.059 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.095e-05/1.026, allocations: 24 kB / 1.163 GB, free: 6.035 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.033e-05/1.026, allocations: 33.3 kB / 1.163 GB, free: 6.004 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/1.03, allocations: 1.203 MB / 1.164 GB, free: 4.801 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.006322/1.036, allocations: 3.205 MB / 1.167 GB, free: 1.512 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/1.038, allocations: 0.688 MB / 1.168 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008324/1.038, allocations: 418.2 kB / 1.168 GB, free: 412 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/1.04, allocations: 1.021 MB / 1.169 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/1.041, allocations: 0.5143 MB / 1.17 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 3.036e-06/1.041, allocations: 0 / 1.17 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.003828/1.044, allocations: 1.228 MB / 1.171 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/1.045, allocations: 140.8 kB / 1.171 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/1.047, allocations: 1.207 MB / 1.172 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001671/1.048, allocations: 37.7 kB / 1.172 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000567/1.048, allocations: 445.4 kB / 1.173 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/1.048, allocations: 189.2 kB / 1.173 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/1.049, allocations: 146.1 kB / 1.173 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001613/1.049, allocations: 330 kB / 1.174 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/1.05, allocations: 460.8 kB / 1.174 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/1.051, allocations: 0.6171 MB / 1.175 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/1.054, allocations: 0.9418 MB / 1.175 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/1.054, allocations: 4 kB / 1.175 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003253/1.057, allocations: 1.233 MB / 1.177 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.165e-05/1.057, allocations: 33.7 kB / 1.177 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/1.057, allocations: 4 kB / 1.177 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.063e-05/1.057, allocations: 8 kB / 1.177 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009876/1.058, allocations: 204 kB / 1.177 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/1.058, allocations: 7.938 kB / 1.177 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/1.06, allocations: 278.9 kB / 1.177 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.328e-05/1.06, allocations: 31.98 kB / 1.177 GB, free: 6.918 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.0005312/1.06, allocations: 335.3 kB / 1.178 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/1.06, allocations: 114.6 kB / 1.178 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/1.062, allocations: 0.9916 MB / 1.179 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/1.063, allocations: 7.938 kB / 1.179 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.063, allocations: 8 kB / 1.179 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/1.063, allocations: 3.984 kB / 1.179 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004639/1.067, allocations: 3.163 MB / 1.182 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/1.067, allocations: 4 kB / 1.182 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/1.068, allocations: 120 kB / 1.182 GB, free: 2 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/1.068, allocations: 8 kB / 1.182 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.538e-05/1.068, allocations: 31.92 kB / 1.182 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/1.068, allocations: 15.98 kB / 1.182 GB, free: 1.945 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.068, allocations: 11.94 kB / 1.182 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/1.07, allocations: 1.333 MB / 1.183 GB, free: 500 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004717/1.071, allocations: 331.4 kB / 1.184 GB, free: 148 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/1.071, allocations: 20 kB / 1.184 GB, free: 128 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.072, allocations: 111.9 kB / 1.184 GB, free: 16 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/1.072, allocations: 63.7 kB / 1.184 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.742e-05/1.072, allocations: 43.97 kB / 1.184 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001481/1.074, allocations: 0.8716 MB / 1.185 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.21e-07/1.074, allocations: 0 / 1.185 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001025/1.075, allocations: 295.8 kB / 1.185 GB, free: 14.74 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.0006824/1.075, allocations: 343.6 kB / 1.185 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002388/1.078, allocations: 1.014 MB / 1.186 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.078, allocations: 0 / 1.186 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008967/1.079, allocations: 0.5164 MB / 1.187 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/1.081, allocations: 0.5393 MB / 1.187 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/1.085, allocations: 2.347 MB / 1.19 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005858/1.085, allocations: 1.069 MB / 1.191 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.00102/1.086, allocations: 276.3 kB / 1.191 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/1.086, allocations: 79.42 kB / 1.191 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/1.087, allocations: 0 / 1.191 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of Templates: time 0.03406/1.121, allocations: 21.25 MB / 1.212 GB, free: 3.387 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