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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001166/0.001166, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001029/0.001029, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.594/2.594, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003286, allocations: 12 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6583/0.6587, allocations: 153.7 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.169/0.8277, allocations: 162 MB / 1.179 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.009283/0.837, allocations: 6.297 MB / 1.185 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009868/0.838, allocations: 39.69 kB / 1.185 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.84, allocations: 0.661 MB / 1.186 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.004607/0.8446, allocations: 1.675 MB / 1.187 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.8486, allocations: 1.539 MB / 1.189 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00305/0.8517, allocations: 1.709 MB / 1.191 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.8528, allocations: 0.7131 MB / 1.191 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001845/0.8547, allocations: 0.9033 MB / 1.192 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008386/0.8556, allocations: 0.5367 MB / 1.193 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.8557, allocations: 40 kB / 1.193 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/0.8583, allocations: 1.166 MB / 1.194 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003567/0.8587, allocations: 295 kB / 1.194 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.859, allocations: 233.1 kB / 1.194 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002023/0.861, allocations: 1.539 MB / 1.196 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.861, allocations: 0 / 1.196 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.823e-06/0.861, allocations: 0 / 1.196 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.88e-05/0.861, allocations: 0 / 1.196 GB, free: 13.39 MB / 0.9512 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.003068/0.8641, allocations: 1.384 MB / 1.197 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.8642, allocations: 15.98 kB / 1.197 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003161/0.8673, allocations: 0.6035 MB / 1.198 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.8694, allocations: 0.9174 MB / 1.199 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001187/0.8706, allocations: 321 kB / 1.199 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.8708, allocations: 68 kB / 1.199 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.8734, allocations: 1.14 MB / 1.2 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.8734, allocations: 0 / 1.2 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.432e-05/0.8735, allocations: 31.98 kB / 1.2 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.605e-05/0.8736, allocations: 33.3 kB / 1.2 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.8769, allocations: 1.25 MB / 1.202 GB, free: 7.496 MB / 0.9512 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.006252/0.8831, allocations: 3.279 MB / 1.205 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.8848, allocations: 0.7036 MB / 1.205 GB, free: 3.426 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004825/0.8853, allocations: 0.6653 MB / 1.206 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000966/0.8862, allocations: 0.5222 MB / 1.207 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=57): time 2.695e-06/0.8862, allocations: 0 / 1.207 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of matching and sorting (n=57): time 0.003018/0.8893, allocations: 1.32 MB / 1.208 GB, free: 0.7148 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/0.8894, allocations: 152.8 kB / 1.208 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.8914, allocations: 1.215 MB / 1.209 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 8.971e-05/0.8915, allocations: 37.7 kB / 1.209 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003768/0.8919, allocations: 445.4 kB / 1.21 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.892, allocations: 185.2 kB / 1.21 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.8921, allocations: 12 kB / 1.21 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.8922, allocations: 326 kB / 1.21 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.8935, allocations: 484.9 kB / 1.211 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.895, allocations: 0.6367 MB / 1.211 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.8963, allocations: 0.5346 MB / 1.212 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.8963, allocations: 0 / 1.212 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003197/0.8995, allocations: 1.284 MB / 1.213 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.8996, allocations: 41.69 kB / 1.213 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.8996, allocations: 7.938 kB / 1.213 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.8997, allocations: 8.281 kB / 1.213 GB, free: 11.24 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.9007, allocations: 211.7 kB / 1.213 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.9007, allocations: 7.953 kB / 1.213 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.9024, allocations: 306.8 kB / 1.214 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.545e-05/0.9025, allocations: 35.97 kB / 1.214 GB, free: 10.69 MB / 0.9669 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005152/0.903, allocations: 340.2 kB / 1.214 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.9031, allocations: 114.6 kB / 1.214 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.9051, allocations: 1.006 MB / 1.215 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.9052, allocations: 7.984 kB / 1.215 GB, free: 9.207 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.9052, allocations: 0 / 1.215 GB, free: 9.207 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.9052, allocations: 11.95 kB / 1.215 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/0.9098, allocations: 3.173 MB / 1.218 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.9098, allocations: 8.594 kB / 1.218 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006055/0.9105, allocations: 127.8 kB / 1.218 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-05/0.9105, allocations: 8 kB / 1.218 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.278e-05/0.9105, allocations: 27.98 kB / 1.218 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.9106, allocations: 11.94 kB / 1.218 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.9106, allocations: 15.94 kB / 1.218 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.9128, allocations: 1.746 MB / 1.22 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/0.9134, allocations: 335.3 kB / 1.22 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.9136, allocations: 27.98 kB / 1.22 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.9148, allocations: 131.8 kB / 1.221 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.978e-05/0.9149, allocations: 59.78 kB / 1.221 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.143e-05/0.915, allocations: 39.97 kB / 1.221 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001543/0.9165, allocations: 0.8911 MB / 1.221 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9165, allocations: 0 / 1.221 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00105/0.9176, allocations: 291.9 kB / 1.222 GB, free: 1.867 MB / 0.9669 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 (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.0006657/0.9183, allocations: 359.6 kB / 1.222 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002436/0.9207, allocations: 1.052 MB / 1.223 GB, free: 464 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.9207, allocations: 0 / 1.223 GB, free: 464 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0008985/0.9216, allocations: 0.5219 MB / 1.224 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/0.9241, allocations: 0.5242 MB / 1.224 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.9277, allocations: 2.287 MB / 1.226 GB, free: 13 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007043/0.9285, allocations: 1.089 MB / 1.227 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001232/0.9297, allocations: 280.8 kB / 1.228 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.93, allocations: 83.41 kB / 1.228 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of SimCode: time 8.81e-07/0.93, allocations: 0 / 1.228 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of Templates: time 0.03524/0.9652, allocations: 20.85 MB / 1.248 GB, free: 6.906 MB / 0.9981 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","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches