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.001511/0.001511, allocations: 101.8 kB / 16.35 MB, free: 5.875 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.001738/0.001739, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.537/2.537, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 64.56 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3584, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.8708/1.229, allocations: 194 MB / 1.216 GB, free: 8.363 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01182/1.241, allocations: 6.939 MB / 1.223 GB, free: 2.707 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/1.243, allocations: 45.47 kB / 1.223 GB, free: 2.688 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001963/1.245, allocations: 0.6921 MB / 1.224 GB, free: 2.094 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.006097/1.251, allocations: 2.33 MB / 1.226 GB, free: 320 kB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003436/1.255, allocations: 1.434 MB / 1.227 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.004445/1.259, allocations: 3 MB / 1.23 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/1.261, allocations: 0.8911 MB / 1.231 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00325/1.264, allocations: 1.129 MB / 1.232 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/1.266, allocations: 0.798 MB / 1.233 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002734/1.266, allocations: 96 kB / 1.233 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004458/1.27, allocations: 2.062 MB / 1.235 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004092/1.271, allocations: 366.8 kB / 1.235 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0007812/1.272, allocations: 0.587 MB / 1.236 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003908/1.276, allocations: 2.388 MB / 1.238 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/1.276, allocations: 0 / 1.238 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.248e-06/1.276, allocations: 8 kB / 1.238 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.499e-05/1.276, allocations: 0 / 1.238 GB, free: 4.789 MB / 0.9356 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.003718/1.279, allocations: 1.625 MB / 1.24 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/1.279, allocations: 8.031 kB / 1.24 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00298/1.282, allocations: 0.541 MB / 1.241 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/1.285, allocations: 1.034 MB / 1.242 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.919e-05/1.285, allocations: 57.31 kB / 1.242 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/1.285, allocations: 64 kB / 1.242 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/1.288, allocations: 1.12 MB / 1.243 GB, free: 212 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/1.288, allocations: 0 / 1.243 GB, free: 212 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.333e-05/1.288, allocations: 31.94 kB / 1.243 GB, free: 180 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.169e-05/1.288, allocations: 37.3 kB / 1.243 GB, free: 144 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002911/1.291, allocations: 1.16 MB / 1.244 GB, free: 14.98 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.005925/1.297, allocations: 3.17 MB / 1.247 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/1.298, allocations: 0.688 MB / 1.248 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008031/1.299, allocations: 419 kB / 1.248 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009727/1.3, allocations: 1.029 MB / 1.249 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/1.301, allocations: 0.5143 MB / 1.25 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=57): time 2.635e-06/1.301, allocations: 0 / 1.25 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of matching and sorting (n=57): time 0.003229/1.304, allocations: 1.221 MB / 1.251 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.821e-05/1.304, allocations: 140.9 kB / 1.251 GB, free: 7.434 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/1.307, allocations: 1.18 MB / 1.252 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/1.307, allocations: 37.7 kB / 1.252 GB, free: 6.195 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/1.307, allocations: 437.4 kB / 1.253 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000186/1.308, allocations: 193.2 kB / 1.253 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/1.308, allocations: 146.1 kB / 1.253 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.308, allocations: 326 kB / 1.253 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/1.309, allocations: 444.9 kB / 1.254 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/1.311, allocations: 0.5898 MB / 1.254 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/1.313, allocations: 0.9301 MB / 1.255 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/1.313, allocations: 0 / 1.255 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003046/1.316, allocations: 1.194 MB / 1.256 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/1.316, allocations: 41.72 kB / 1.256 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.316, allocations: 4 kB / 1.256 GB, free: 1.785 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/1.316, allocations: 8 kB / 1.256 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009107/1.317, allocations: 183.7 kB / 1.256 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/1.317, allocations: 11.94 kB / 1.256 GB, free: 1.586 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/1.318, allocations: 242.9 kB / 1.257 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.07e-05/1.318, allocations: 35.97 kB / 1.257 GB, free: 1.312 MB / 0.9512 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.000535/1.319, allocations: 335.2 kB / 1.257 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/1.319, allocations: 114.6 kB / 1.257 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/1.321, allocations: 0.9944 MB / 1.258 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/1.321, allocations: 8 kB / 1.258 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/1.321, allocations: 3.938 kB / 1.258 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/1.321, allocations: 8.5 kB / 1.258 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004751/1.326, allocations: 3.156 MB / 1.261 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/1.326, allocations: 8 kB / 1.261 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/1.327, allocations: 119.9 kB / 1.261 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/1.327, allocations: 8 kB / 1.261 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.135e-05/1.327, allocations: 35.97 kB / 1.261 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/1.327, allocations: 15.88 kB / 1.261 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/1.327, allocations: 8 kB / 1.261 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/1.329, allocations: 1.345 MB / 1.263 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006782/1.33, allocations: 331.3 kB / 1.263 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/1.33, allocations: 31.98 kB / 1.263 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/1.331, allocations: 95.91 kB / 1.263 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.331, allocations: 63.7 kB / 1.263 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/1.331, allocations: 39.97 kB / 1.263 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001423/1.333, allocations: 0.8482 MB / 1.264 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.91e-07/1.333, allocations: 0 / 1.264 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001009/1.334, allocations: 295.9 kB / 1.264 GB, free: 9.145 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 (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.0006947/1.334, allocations: 350.8 kB / 1.265 GB, free: 8.809 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002443/1.337, allocations: 1.013 MB / 1.266 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/1.337, allocations: 4 kB / 1.266 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/1.338, allocations: 0.5163 MB / 1.266 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/1.34, allocations: 0.5503 MB / 1.267 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/1.344, allocations: 2.025 MB / 1.269 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007283/1.345, allocations: 1.073 MB / 1.27 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0009557/1.346, allocations: 267.9 kB / 1.27 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/1.346, allocations: 79.41 kB / 1.27 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of SimCode: time 7.01e-07/1.346, allocations: 4 kB / 1.27 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of Templates: time 0.03785/1.384, allocations: 22.01 MB / 1.292 GB, free: 13.32 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches