Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001314/0.001314, allocations: 107.6 kB / 15.99 MB, free: 6.348 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.001287/0.001287, allocations: 189.2 kB / 16.91 MB, free: 6.188 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.4/1.4, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.688/2.688, allocations: 469.8 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 69.61 kB / 0.9087 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3395, allocations: 159.1 MB / 1.064 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.7728/1.112, allocations: 191.5 MB / 1.251 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01285/1.125, allocations: 6.9 MB / 1.258 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002018/1.127, allocations: 35.75 kB / 1.258 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002255/1.13, allocations: 0.5944 MB / 1.258 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00647/1.136, allocations: 2.207 MB / 1.261 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003736/1.14, allocations: 1.304 MB / 1.262 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004742/1.145, allocations: 3.004 MB / 1.265 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/1.146, allocations: 0.9031 MB / 1.266 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003371/1.15, allocations: 1.155 MB / 1.267 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002007/1.152, allocations: 0.8531 MB / 1.268 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003502/1.152, allocations: 104 kB / 1.268 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00422/1.156, allocations: 2.136 MB / 1.27 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0006185/1.157, allocations: 370.9 kB / 1.27 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001311/1.158, allocations: 0.5869 MB / 1.271 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00338/1.162, allocations: 1.778 MB / 1.273 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.162, allocations: 4 kB / 1.273 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.893e-06/1.162, allocations: 0 / 1.273 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.63e-05/1.162, allocations: 0 / 1.273 GB, free: 3.773 MB / 0.9825 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.004483/1.166, allocations: 1.625 MB / 1.274 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/1.166, allocations: 12.03 kB / 1.274 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/1.17, allocations: 0.5332 MB / 1.275 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/1.172, allocations: 0.983 MB / 1.276 GB, free: 0.5156 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001163/1.173, allocations: 277 kB / 1.276 GB, free: 252 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/1.173, allocations: 68 kB / 1.276 GB, free: 184 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/1.176, allocations: 1.124 MB / 1.277 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/1.176, allocations: 3.938 kB / 1.277 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.912e-05/1.176, allocations: 27.91 kB / 1.277 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-05/1.176, allocations: 37.23 kB / 1.277 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/1.179, allocations: 1.203 MB / 1.278 GB, free: 13.75 MB / 0.9981 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.006034/1.185, allocations: 3.198 MB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/1.187, allocations: 0.6902 MB / 1.282 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/1.188, allocations: 422.2 kB / 1.282 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009673/1.189, allocations: 1.029 MB / 1.283 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/1.19, allocations: 0.5143 MB / 1.284 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 2.174e-06/1.19, allocations: 0 / 1.284 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.00299/1.193, allocations: 1.225 MB / 1.285 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.978e-05/1.193, allocations: 148.8 kB / 1.285 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002039/1.195, allocations: 1.192 MB / 1.286 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.638e-05/1.195, allocations: 37.7 kB / 1.287 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/1.195, allocations: 445.4 kB / 1.287 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/1.196, allocations: 185.3 kB / 1.287 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/1.196, allocations: 146 kB / 1.287 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000147/1.196, allocations: 330 kB / 1.288 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/1.197, allocations: 464.8 kB / 1.288 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/1.199, allocations: 0.6093 MB / 1.289 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/1.201, allocations: 0.9496 MB / 1.29 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.201, allocations: 0 / 1.29 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003308/1.204, allocations: 1.232 MB / 1.291 GB, free: 460 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.442e-05/1.204, allocations: 41.62 kB / 1.291 GB, free: 412 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/1.204, allocations: 8 kB / 1.291 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/1.204, allocations: 8 kB / 1.291 GB, free: 396 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009816/1.205, allocations: 196 kB / 1.291 GB, free: 200 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/1.205, allocations: 11.94 kB / 1.291 GB, free: 188 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/1.207, allocations: 270.9 kB / 1.291 GB, free: 15.92 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/1.207, allocations: 35.98 kB / 1.291 GB, free: 15.88 MB / 1.014 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.0005271/1.208, allocations: 337.7 kB / 1.292 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/1.208, allocations: 114.6 kB / 1.292 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/1.21, allocations: 0.9928 MB / 1.293 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/1.21, allocations: 12 kB / 1.293 GB, free: 14.42 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/1.21, allocations: 3.938 kB / 1.293 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/1.21, allocations: 3.984 kB / 1.293 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004889/1.215, allocations: 3.15 MB / 1.296 GB, free: 11.11 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/1.215, allocations: 7.984 kB / 1.296 GB, free: 11.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/1.216, allocations: 124.3 kB / 1.296 GB, free: 10.98 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.65e-05/1.216, allocations: 12.52 kB / 1.296 GB, free: 10.96 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.348e-05/1.216, allocations: 23.98 kB / 1.296 GB, free: 10.94 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.577e-05/1.216, allocations: 15.94 kB / 1.296 GB, free: 10.93 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.216, allocations: 15.88 kB / 1.296 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/1.218, allocations: 1.337 MB / 1.297 GB, free: 9.449 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005064/1.218, allocations: 331.3 kB / 1.298 GB, free: 9.105 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/1.219, allocations: 23.98 kB / 1.298 GB, free: 9.082 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/1.22, allocations: 111.9 kB / 1.298 GB, free: 8.973 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.22, allocations: 63.75 kB / 1.298 GB, free: 8.91 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.23e-05/1.22, allocations: 43.97 kB / 1.298 GB, free: 8.867 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001581/1.222, allocations: 0.8599 MB / 1.299 GB, free: 8 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/1.222, allocations: 0 / 1.299 GB, free: 8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001081/1.223, allocations: 299.8 kB / 1.299 GB, free: 7.707 MB / 1.014 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.0008055/1.223, allocations: 359.8 kB / 1.299 GB, free: 7.355 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002593/1.226, allocations: 1.052 MB / 1.3 GB, free: 6.293 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.226, allocations: 4.125 kB / 1.3 GB, free: 6.289 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009717/1.227, allocations: 0.5124 MB / 1.301 GB, free: 5.766 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/1.23, allocations: 0.5576 MB / 1.301 GB, free: 5.227 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003945/1.234, allocations: 2.386 MB / 1.304 GB, free: 2.703 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007137/1.235, allocations: 1.065 MB / 1.305 GB, free: 1.602 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003626/1.235, allocations: 91.39 kB / 1.305 GB, free: 1.516 MB / 1.014 GB Notification: Performance of SimCode: time 7.01e-07/1.235, allocations: 0 / 1.305 GB, free: 1.516 MB / 1.014 GB Notification: Performance of Templates: time 0.02879/1.264, allocations: 18.72 MB / 1.323 GB, free: 14.93 MB / 1.045 GB make -j1 -f Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches