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.001212/0.001212, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001271/0.001271, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.343/1.343, allocations: 222.9 MB / 240.6 MB, free: 4.508 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.323/2.323, allocations: 390.3 MB / 0.665 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 63.89 kB / 0.8127 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7111/0.7134, allocations: 140.4 MB / 0.9498 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1973/0.9107, allocations: 191.5 MB / 1.137 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01153/0.9223, allocations: 6.894 MB / 1.143 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.9245, allocations: 35.75 kB / 1.144 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002271/0.9269, allocations: 0.5905 MB / 1.144 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006298/0.9332, allocations: 2.214 MB / 1.146 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003724/0.937, allocations: 1.308 MB / 1.148 GB, free: 6.848 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004421/0.9414, allocations: 3.005 MB / 1.15 GB, free: 3.832 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.9431, allocations: 0.8957 MB / 1.151 GB, free: 2.926 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003259/0.9464, allocations: 1.159 MB / 1.152 GB, free: 1.77 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002026/0.9485, allocations: 0.8384 MB / 1.153 GB, free: 0.9336 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.9488, allocations: 100 kB / 1.153 GB, free: 0.8359 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004459/0.9533, allocations: 2.139 MB / 1.155 GB, free: 14.69 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0007683/0.9541, allocations: 370.8 kB / 1.156 GB, free: 14.33 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.9554, allocations: 0.5908 MB / 1.156 GB, free: 13.73 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003219/0.9586, allocations: 1.778 MB / 1.158 GB, free: 11.95 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.9587, allocations: 0 / 1.158 GB, free: 11.95 MB / 0.92 GB Notification: Performance of FrontEnd: time 6.862e-06/0.9587, allocations: 4 kB / 1.158 GB, free: 11.95 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.969e-05/0.9588, allocations: 3.938 kB / 1.158 GB, free: 11.95 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.004522/0.9633, allocations: 1.627 MB / 1.16 GB, free: 10.26 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.9634, allocations: 8.031 kB / 1.16 GB, free: 10.25 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003141/0.9665, allocations: 0.541 MB / 1.16 GB, free: 9.707 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/0.969, allocations: 0.9713 MB / 1.161 GB, free: 8.695 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001155/0.9702, allocations: 281 kB / 1.162 GB, free: 8.422 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.9705, allocations: 68 kB / 1.162 GB, free: 8.355 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002915/0.9734, allocations: 1.128 MB / 1.163 GB, free: 7.195 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.9734, allocations: 0 / 1.163 GB, free: 7.195 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.9735, allocations: 31.98 kB / 1.163 GB, free: 7.164 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-05/0.9736, allocations: 29.31 kB / 1.163 GB, free: 7.133 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003343/0.977, allocations: 1.203 MB / 1.164 GB, free: 5.93 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.006968/0.984, allocations: 3.209 MB / 1.167 GB, free: 2.645 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.9858, allocations: 0.6919 MB / 1.168 GB, free: 1.941 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007931/0.9866, allocations: 422.2 kB / 1.168 GB, free: 1.527 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009784/0.9876, allocations: 1.025 MB / 1.169 GB, free: 288 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.9888, allocations: 0.5104 MB / 1.17 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 4.148e-06/0.9888, allocations: 4 kB / 1.17 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.003108/0.9919, allocations: 1.217 MB / 1.171 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.992, allocations: 148.8 kB / 1.171 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.9943, allocations: 1.2 MB / 1.172 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.9945, allocations: 37.7 kB / 1.172 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004122/0.9949, allocations: 445.4 kB / 1.173 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/0.9951, allocations: 193.2 kB / 1.173 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.9954, allocations: 146.1 kB / 1.173 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.9956, allocations: 338 kB / 1.173 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.9969, allocations: 448.9 kB / 1.174 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.9983, allocations: 0.6171 MB / 1.174 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/1, allocations: 0.9496 MB / 1.175 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/1, allocations: 0 / 1.175 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003294/1.004, allocations: 1.232 MB / 1.176 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.258e-05/1.004, allocations: 37.69 kB / 1.176 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/1.004, allocations: 4 kB / 1.176 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/1.004, allocations: 8 kB / 1.176 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/1.005, allocations: 199.9 kB / 1.177 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/1.005, allocations: 4 kB / 1.177 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.007, allocations: 278.8 kB / 1.177 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/1.007, allocations: 43.95 kB / 1.177 GB, free: 8.039 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.0006067/1.007, allocations: 325 kB / 1.177 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/1.008, allocations: 114.6 kB / 1.177 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/1.01, allocations: 0.9919 MB / 1.178 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/1.01, allocations: 19.92 kB / 1.178 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/1.01, allocations: 0 / 1.178 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/1.01, allocations: 0 / 1.178 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005234/1.015, allocations: 3.162 MB / 1.181 GB, free: 3.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/1.015, allocations: 4 kB / 1.181 GB, free: 3.246 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000603/1.016, allocations: 124 kB / 1.182 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.646e-05/1.016, allocations: 12 kB / 1.182 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/1.016, allocations: 27.98 kB / 1.182 GB, free: 3.086 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.385e-05/1.016, allocations: 19.88 kB / 1.182 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/1.016, allocations: 8.516 kB / 1.182 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/1.018, allocations: 1.341 MB / 1.183 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006322/1.019, allocations: 327.4 kB / 1.183 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/1.019, allocations: 23.98 kB / 1.183 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/1.021, allocations: 103.9 kB / 1.183 GB, free: 1.137 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/1.021, allocations: 71.67 kB / 1.183 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/1.021, allocations: 43.97 kB / 1.183 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001786/1.023, allocations: 0.8638 MB / 1.184 GB, free: 156 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.372e-06/1.023, allocations: 0 / 1.184 GB, free: 156 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001353/1.024, allocations: 303.8 kB / 1.185 GB, free: 15.85 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.0008917/1.025, allocations: 337.6 kB / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002648/1.028, allocations: 1.052 MB / 1.186 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.028, allocations: 0 / 1.186 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/1.029, allocations: 0.5141 MB / 1.186 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003226/1.032, allocations: 0.5504 MB / 1.187 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/1.036, allocations: 2.397 MB / 1.189 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008364/1.037, allocations: 1.061 MB / 1.19 GB, free: 9.777 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/1.038, allocations: 91.41 kB / 1.19 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of SimCode: time 1.172e-06/1.038, allocations: 0 / 1.19 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of Templates: time 0.02945/1.067, allocations: 18.72 MB / 1.209 GB, free: 7.098 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches