Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.009584/0.009583, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001564/0.001564, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.573/2.573, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 59.91 kB / 1.054 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8352/0.8366, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2023/1.039, allocations: 194 MB / 1.397 GB, free: 10.89 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.0104/1.049, allocations: 6.942 MB / 1.404 GB, free: 3.941 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/1.051, allocations: 43.69 kB / 1.404 GB, free: 3.898 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001657/1.053, allocations: 0.6947 MB / 1.405 GB, free: 3.199 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.005842/1.058, allocations: 2.341 MB / 1.407 GB, free: 0.8477 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.00338/1.062, allocations: 1.43 MB / 1.408 GB, free: 15.44 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.00385/1.066, allocations: 2.982 MB / 1.411 GB, free: 12.45 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/1.067, allocations: 0.8879 MB / 1.412 GB, free: 11.54 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002586/1.069, allocations: 1.151 MB / 1.413 GB, free: 10.39 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/1.071, allocations: 0.7959 MB / 1.414 GB, free: 9.598 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0001572/1.071, allocations: 100 kB / 1.414 GB, free: 9.5 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003744/1.075, allocations: 2.058 MB / 1.416 GB, free: 7.438 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0003943/1.075, allocations: 362.9 kB / 1.417 GB, free: 7.082 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0006914/1.076, allocations: 0.5869 MB / 1.417 GB, free: 6.492 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003572/1.08, allocations: 2.394 MB / 1.419 GB, free: 4.094 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/1.08, allocations: 0 / 1.419 GB, free: 4.094 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.893e-06/1.08, allocations: 3.938 kB / 1.419 GB, free: 4.09 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.792e-05/1.08, allocations: 0 / 1.419 GB, free: 4.09 MB / 1.139 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.003257/1.083, allocations: 1.625 MB / 1.421 GB, free: 2.406 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/1.083, allocations: 12.03 kB / 1.421 GB, free: 2.395 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00286/1.086, allocations: 0.537 MB / 1.422 GB, free: 1.855 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/1.088, allocations: 1.053 MB / 1.423 GB, free: 0.7578 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.535e-05/1.088, allocations: 49.31 kB / 1.423 GB, free: 0.7109 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/1.088, allocations: 72 kB / 1.423 GB, free: 0.6406 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/1.091, allocations: 1.105 MB / 1.424 GB, free: 15.5 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/1.091, allocations: 7.938 kB / 1.424 GB, free: 15.5 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.228e-05/1.091, allocations: 24 kB / 1.424 GB, free: 15.47 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.257e-05/1.091, allocations: 33.3 kB / 1.424 GB, free: 15.44 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/1.094, allocations: 1.164 MB / 1.425 GB, free: 14.28 MB / 1.154 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.005704/1.1, allocations: 3.162 MB / 1.428 GB, free: 11.04 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/1.101, allocations: 0.688 MB / 1.429 GB, free: 10.34 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007942/1.102, allocations: 420.6 kB / 1.429 GB, free: 9.93 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009004/1.103, allocations: 1.029 MB / 1.43 GB, free: 8.676 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/1.104, allocations: 0.5104 MB / 1.431 GB, free: 8.145 MB / 1.154 GB Notification: Performance of pre-optimization done (n=57): time 2.485e-06/1.104, allocations: 0 / 1.431 GB, free: 8.145 MB / 1.154 GB Notification: Performance of matching and sorting (n=57): time 0.003041/1.107, allocations: 1.225 MB / 1.432 GB, free: 6.91 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/1.107, allocations: 144.8 kB / 1.432 GB, free: 6.738 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/1.109, allocations: 1.172 MB / 1.433 GB, free: 5.551 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/1.109, allocations: 37.7 kB / 1.433 GB, free: 5.508 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003553/1.11, allocations: 437.5 kB / 1.434 GB, free: 5.078 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/1.11, allocations: 201.2 kB / 1.434 GB, free: 4.879 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/1.11, allocations: 142.1 kB / 1.434 GB, free: 4.734 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.11, allocations: 322 kB / 1.434 GB, free: 4.414 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/1.111, allocations: 444.9 kB / 1.435 GB, free: 3.977 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/1.113, allocations: 0.5976 MB / 1.435 GB, free: 3.332 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/1.115, allocations: 0.9223 MB / 1.436 GB, free: 2.359 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/1.115, allocations: 0 / 1.436 GB, free: 2.359 MB / 1.154 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003175/1.118, allocations: 1.197 MB / 1.437 GB, free: 1.145 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 4.814e-05/1.118, allocations: 44.05 kB / 1.437 GB, free: 1.098 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/1.118, allocations: 0 / 1.437 GB, free: 1.098 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/1.118, allocations: 8 kB / 1.437 GB, free: 1.09 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009212/1.119, allocations: 192 kB / 1.438 GB, free: 0.9023 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/1.119, allocations: 15.86 kB / 1.438 GB, free: 0.8867 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/1.12, allocations: 238.9 kB / 1.438 GB, free: 0.6523 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/1.121, allocations: 39.97 kB / 1.438 GB, free: 0.6133 MB / 1.154 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.0004856/1.121, allocations: 323.3 kB / 1.438 GB, free: 288 kB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/1.121, allocations: 118.6 kB / 1.438 GB, free: 168 kB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/1.123, allocations: 0.9925 MB / 1.439 GB, free: 15.16 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/1.123, allocations: 7.984 kB / 1.439 GB, free: 15.16 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/1.123, allocations: 7.938 kB / 1.439 GB, free: 15.15 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/1.123, allocations: 4.516 kB / 1.439 GB, free: 15.14 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/1.128, allocations: 3.158 MB / 1.442 GB, free: 11.83 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/1.128, allocations: 8 kB / 1.442 GB, free: 11.82 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005993/1.129, allocations: 124 kB / 1.442 GB, free: 11.7 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/1.129, allocations: 8 kB / 1.442 GB, free: 11.7 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/1.129, allocations: 31.97 kB / 1.442 GB, free: 11.66 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-05/1.129, allocations: 12 kB / 1.442 GB, free: 11.65 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/1.129, allocations: 11.94 kB / 1.442 GB, free: 11.64 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/1.131, allocations: 1.341 MB / 1.444 GB, free: 10.18 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005516/1.132, allocations: 327.4 kB / 1.444 GB, free: 9.836 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/1.132, allocations: 23.98 kB / 1.444 GB, free: 9.812 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/1.133, allocations: 99.91 kB / 1.444 GB, free: 9.715 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/1.133, allocations: 67.69 kB / 1.444 GB, free: 9.648 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-05/1.133, allocations: 35.98 kB / 1.444 GB, free: 9.613 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001466/1.135, allocations: 0.8482 MB / 1.445 GB, free: 8.758 MB / 1.17 GB Notification: Performance of sort global known variables: time 2.11e-07/1.135, allocations: 4 kB / 1.445 GB, free: 8.754 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001073/1.136, allocations: 303.8 kB / 1.445 GB, free: 8.457 MB / 1.17 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.0007267/1.136, allocations: 345.7 kB / 1.446 GB, free: 8.125 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.002419/1.139, allocations: 1.027 MB / 1.447 GB, free: 7.086 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.139, allocations: 0 / 1.447 GB, free: 7.086 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0009346/1.14, allocations: 0.5086 MB / 1.447 GB, free: 6.566 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/1.142, allocations: 0.5523 MB / 1.448 GB, free: 6.023 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003593/1.146, allocations: 2.017 MB / 1.45 GB, free: 3.875 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006834/1.147, allocations: 1.077 MB / 1.451 GB, free: 2.766 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.0008772/1.148, allocations: 271.9 kB / 1.451 GB, free: 2.5 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/1.148, allocations: 79.42 kB / 1.451 GB, free: 2.422 MB / 1.17 GB Notification: Performance of SimCode: time 1.292e-06/1.148, allocations: 0 / 1.451 GB, free: 2.422 MB / 1.17 GB Notification: Performance of Templates: time 0.03479/1.183, allocations: 22.51 MB / 1.473 GB, free: 12.13 MB / 1.201 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches