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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00149/0.00149, allocations: 106.4 kB / 16.37 MB, free: 6.434 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.001684/0.001684, allocations: 189.1 kB / 17.3 MB, free: 5.773 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.78 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2639, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.676/0.94, allocations: 194 MB / 1.141 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.009375/0.9494, allocations: 6.943 MB / 1.147 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.951, allocations: 46.88 kB / 1.147 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.9527, allocations: 0.6945 MB / 1.148 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00564/0.9584, allocations: 2.33 MB / 1.15 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003258/0.9617, allocations: 1.432 MB / 1.152 GB, free: 444 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003909/0.9656, allocations: 2.992 MB / 1.155 GB, free: 48 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.9669, allocations: 0.8877 MB / 1.156 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.9695, allocations: 1.135 MB / 1.157 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.9708, allocations: 0.8006 MB / 1.157 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.9709, allocations: 98.91 kB / 1.158 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.975, allocations: 2.059 MB / 1.16 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004172/0.9754, allocations: 369.4 kB / 1.16 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0007454/0.9762, allocations: 0.5837 MB / 1.16 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003936/0.9801, allocations: 2.399 MB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.9801, allocations: 1.219 kB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9802, allocations: 4 kB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.145e-05/0.9802, allocations: 0 / 1.163 GB, free: 13.83 MB / 0.8731 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.003611/0.9838, allocations: 1.622 MB / 1.164 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.9839, allocations: 13.62 kB / 1.164 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00301/0.9869, allocations: 0.536 MB / 1.165 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.9893, allocations: 1.029 MB / 1.166 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.557e-05/0.9894, allocations: 55.16 kB / 1.166 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.9895, allocations: 67.5 kB / 1.166 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.992, allocations: 1.108 MB / 1.167 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.992, allocations: 5.375 kB / 1.167 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.694e-05/0.9921, allocations: 30.19 kB / 1.167 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.135e-05/0.9921, allocations: 37.19 kB / 1.167 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/0.9953, allocations: 1.165 MB / 1.168 GB, free: 11.23 MB / 0.8731 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.006501/1.002, allocations: 3.166 MB / 1.171 GB, free: 9.211 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/1.003, allocations: 0.6792 MB / 1.172 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008072/1.004, allocations: 424.5 kB / 1.172 GB, free: 8.656 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009356/1.005, allocations: 1.025 MB / 1.173 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/1.006, allocations: 0.523 MB / 1.174 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=57): time 2.415e-06/1.006, allocations: 0 / 1.174 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of matching and sorting (n=57): time 0.003157/1.009, allocations: 1.218 MB / 1.175 GB, free: 6.527 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/1.01, allocations: 139.8 kB / 1.175 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/1.011, allocations: 1.183 MB / 1.176 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.403e-05/1.012, allocations: 39.05 kB / 1.177 GB, free: 5.684 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/1.012, allocations: 438 kB / 1.177 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/1.012, allocations: 191.4 kB / 1.177 GB, free: 5.145 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/1.012, allocations: 136.5 kB / 1.177 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.012, allocations: 334.3 kB / 1.178 GB, free: 4.742 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/1.014, allocations: 441.5 kB / 1.178 GB, free: 4.531 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/1.015, allocations: 0.593 MB / 1.179 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/1.017, allocations: 0.9305 MB / 1.179 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/1.017, allocations: 2.812 kB / 1.179 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002985/1.02, allocations: 1.193 MB / 1.181 GB, free: 2.98 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/1.02, allocations: 44.03 kB / 1.181 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/1.02, allocations: 2.406 kB / 1.181 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.02, allocations: 4.438 kB / 1.181 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009139/1.021, allocations: 186.7 kB / 1.181 GB, free: 2.887 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/1.021, allocations: 11.5 kB / 1.181 GB, free: 2.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/1.022, allocations: 246.7 kB / 1.181 GB, free: 2.758 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/1.023, allocations: 31.98 kB / 1.181 GB, free: 2.75 MB / 0.8731 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.0005001/1.023, allocations: 336.3 kB / 1.181 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/1.023, allocations: 116.1 kB / 1.182 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/1.025, allocations: 0.9911 MB / 1.183 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/1.025, allocations: 8.25 kB / 1.183 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/1.025, allocations: 3.938 kB / 1.183 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/1.025, allocations: 3.984 kB / 1.183 GB, free: 1.867 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/1.03, allocations: 3.159 MB / 1.186 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/1.03, allocations: 11.5 kB / 1.186 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005984/1.031, allocations: 125.5 kB / 1.186 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/1.031, allocations: 12.25 kB / 1.186 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/1.031, allocations: 20.19 kB / 1.186 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/1.031, allocations: 18.55 kB / 1.186 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.031, allocations: 7.406 kB / 1.186 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/1.033, allocations: 1.35 MB / 1.187 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005873/1.034, allocations: 327.1 kB / 1.187 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/1.034, allocations: 25.03 kB / 1.187 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/1.035, allocations: 104.1 kB / 1.188 GB, free: 14.28 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.978e-05/1.035, allocations: 64.89 kB / 1.188 GB, free: 14.24 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-05/1.035, allocations: 37.12 kB / 1.188 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001358/1.036, allocations: 0.8495 MB / 1.189 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.21e-07/1.036, allocations: 0 / 1.189 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001067/1.037, allocations: 300.2 kB / 1.189 GB, free: 13.71 MB / 0.8887 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.0006806/1.038, allocations: 342.8 kB / 1.189 GB, free: 13.52 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00229/1.04, allocations: 1.022 MB / 1.19 GB, free: 13 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/1.04, allocations: 2.094 kB / 1.19 GB, free: 13 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000919/1.041, allocations: 0.5144 MB / 1.191 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/1.044, allocations: 0.5508 MB / 1.191 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/1.047, allocations: 2.027 MB / 1.193 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/1.048, allocations: 1.069 MB / 1.194 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0009265/1.049, allocations: 273.9 kB / 1.194 GB, free: 10.08 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/1.049, allocations: 82.53 kB / 1.195 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of SimCode: time 5.71e-07/1.049, allocations: 4 kB / 1.195 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of Templates: time 0.03769/1.087, allocations: 22.01 MB / 1.216 GB, free: 12.4 MB / 0.9044 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 -s gbode -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