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.001435/0.001435, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 195.1 kB / 16.79 MB, free: 6.809 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.393/1.393, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.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.354/2.354, allocations: 390.2 MB / 0.6649 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7031/0.7044, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2084/0.9129, allocations: 191.7 MB / 1.137 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0111/0.9241, allocations: 6.988 MB / 1.144 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.9261, allocations: 43.75 kB / 1.144 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.9283, allocations: 0.5671 MB / 1.144 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006392/0.9347, allocations: 2.183 MB / 1.146 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003458/0.9382, allocations: 1.281 MB / 1.148 GB, free: 6.727 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004845/0.943, allocations: 3.746 MB / 1.151 GB, free: 2.969 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001411/0.9445, allocations: 0.7815 MB / 1.152 GB, free: 2.176 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.9466, allocations: 0.9686 MB / 1.153 GB, free: 1.203 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001929/0.9486, allocations: 0.8137 MB / 1.154 GB, free: 404 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.9488, allocations: 48 kB / 1.154 GB, free: 356 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004219/0.953, allocations: 2.229 MB / 1.156 GB, free: 14.11 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003918/0.9534, allocations: 318.8 kB / 1.156 GB, free: 13.8 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0007122/0.9541, allocations: 0.5361 MB / 1.157 GB, free: 13.26 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.9564, allocations: 1.762 MB / 1.158 GB, free: 11.5 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.9564, allocations: 4 kB / 1.158 GB, free: 11.49 MB / 0.92 GB Notification: Performance of FrontEnd: time 7.42e-07/0.9564, allocations: 0 / 1.158 GB, free: 11.49 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.9565, allocations: 0 / 1.158 GB, free: 11.49 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.003388/0.9599, allocations: 1.636 MB / 1.16 GB, free: 9.797 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.9599, allocations: 11.97 kB / 1.16 GB, free: 9.785 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/0.9629, allocations: 0.5293 MB / 1.161 GB, free: 9.254 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.9651, allocations: 0.9791 MB / 1.162 GB, free: 8.23 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001097/0.9663, allocations: 277 kB / 1.162 GB, free: 7.961 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.9664, allocations: 68 kB / 1.162 GB, free: 7.895 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002519/0.9689, allocations: 1.136 MB / 1.163 GB, free: 6.727 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.969, allocations: 4 kB / 1.163 GB, free: 6.723 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.861e-05/0.9691, allocations: 24 kB / 1.163 GB, free: 6.699 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.342e-05/0.9691, allocations: 33.3 kB / 1.163 GB, free: 6.668 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00306/0.9722, allocations: 1.2 MB / 1.164 GB, free: 5.469 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.00611/0.9783, allocations: 3.213 MB / 1.167 GB, free: 2.172 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.9801, allocations: 0.688 MB / 1.168 GB, free: 1.473 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008034/0.9809, allocations: 423.2 kB / 1.168 GB, free: 1.059 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009556/0.9819, allocations: 1.025 MB / 1.169 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.9829, allocations: 0.5104 MB / 1.17 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 2.134e-06/0.9829, allocations: 0 / 1.17 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.003063/0.986, allocations: 1.224 MB / 1.171 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/0.9861, allocations: 140.8 kB / 1.171 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/0.9882, allocations: 1.207 MB / 1.172 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.9883, allocations: 37.7 kB / 1.172 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.9887, allocations: 437.4 kB / 1.173 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.9889, allocations: 193.2 kB / 1.173 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.9892, allocations: 142.1 kB / 1.173 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.9894, allocations: 330 kB / 1.174 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.9906, allocations: 464.9 kB / 1.174 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.9921, allocations: 0.6132 MB / 1.175 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.9942, allocations: 0.9418 MB / 1.176 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.9943, allocations: 4 kB / 1.176 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003207/0.9975, allocations: 1.233 MB / 1.177 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.964e-05/0.9975, allocations: 41.7 kB / 1.177 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.9976, allocations: 4 kB / 1.177 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.9976, allocations: 11.98 kB / 1.177 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009659/0.9986, allocations: 199.7 kB / 1.177 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.9986, allocations: 4 kB / 1.177 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/1, allocations: 266.9 kB / 1.177 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.466e-05/1, allocations: 35.98 kB / 1.177 GB, free: 7.59 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.0005663/1.001, allocations: 337.2 kB / 1.178 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/1.001, allocations: 115.1 kB / 1.178 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/1.003, allocations: 0.9893 MB / 1.179 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/1.003, allocations: 11.88 kB / 1.179 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.003, allocations: 7.938 kB / 1.179 GB, free: 6.113 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/1.003, allocations: 8.016 kB / 1.179 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004832/1.008, allocations: 3.165 MB / 1.182 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.507e-06/1.008, allocations: 4 kB / 1.182 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005921/1.009, allocations: 123.8 kB / 1.182 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/1.009, allocations: 8 kB / 1.182 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/1.009, allocations: 28.19 kB / 1.182 GB, free: 2.621 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.866e-05/1.009, allocations: 19.92 kB / 1.182 GB, free: 2.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/1.009, allocations: 8 kB / 1.182 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/1.011, allocations: 1.33 MB / 1.183 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/1.012, allocations: 331.4 kB / 1.184 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/1.012, allocations: 20 kB / 1.184 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/1.013, allocations: 111.9 kB / 1.184 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/1.013, allocations: 63.7 kB / 1.184 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.08e-05/1.013, allocations: 39.97 kB / 1.184 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001534/1.015, allocations: 0.8717 MB / 1.185 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/1.015, allocations: 0 / 1.185 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001106/1.016, allocations: 295.8 kB / 1.185 GB, free: 15.41 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.0007401/1.017, allocations: 347.1 kB / 1.185 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002353/1.019, allocations: 1.017 MB / 1.186 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/1.019, allocations: 0 / 1.186 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000936/1.02, allocations: 0.5108 MB / 1.187 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/1.023, allocations: 0.5308 MB / 1.187 GB, free: 13 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/1.026, allocations: 2.395 MB / 1.19 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/1.027, allocations: 1.065 MB / 1.191 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/1.028, allocations: 95.39 kB / 1.191 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of SimCode: time 5.81e-07/1.028, allocations: 0 / 1.191 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of Templates: time 0.02708/1.055, allocations: 18.7 MB / 1.209 GB, free: 6.707 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