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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001597/0.001597, allocations: 106.6 kB / 15.99 MB, free: 6.359 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.001792/0.001792, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.364/1.364, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.689/2.689, allocations: 482.4 MB / 0.755 GB, free: 7.164 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 68.92 kB / 0.924 GB, free: 352 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7766/0.7785, allocations: 162.2 MB / 1.082 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2326/1.011, allocations: 191.5 MB / 1.269 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01123/1.022, allocations: 6.906 MB / 1.276 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001591/1.024, allocations: 39.75 kB / 1.276 GB, free: 7.902 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001714/1.026, allocations: 0.5983 MB / 1.277 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005653/1.031, allocations: 2.187 MB / 1.279 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003226/1.035, allocations: 1.308 MB / 1.28 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003928/1.039, allocations: 2.99 MB / 1.283 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/1.04, allocations: 0.9151 MB / 1.284 GB, free: 15.89 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003785/1.044, allocations: 1.558 MB / 1.286 GB, free: 14.33 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/1.045, allocations: 0.8299 MB / 1.286 GB, free: 13.5 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001595/1.045, allocations: 100 kB / 1.286 GB, free: 13.41 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003688/1.049, allocations: 2.124 MB / 1.289 GB, free: 11.28 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004362/1.05, allocations: 370.9 kB / 1.289 GB, free: 10.91 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0007141/1.05, allocations: 0.5869 MB / 1.289 GB, free: 10.32 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002518/1.053, allocations: 1.785 MB / 1.291 GB, free: 8.535 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.053, allocations: 0 / 1.291 GB, free: 8.535 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.442e-06/1.053, allocations: 0 / 1.291 GB, free: 8.535 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.513e-05/1.053, allocations: 0 / 1.291 GB, free: 8.535 MB / 1.014 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.003658/1.057, allocations: 1.625 MB / 1.293 GB, free: 6.852 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/1.057, allocations: 12.03 kB / 1.293 GB, free: 6.84 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002937/1.06, allocations: 0.537 MB / 1.293 GB, free: 6.301 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/1.062, allocations: 0.9868 MB / 1.294 GB, free: 5.27 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/1.063, allocations: 277 kB / 1.295 GB, free: 5 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/1.063, allocations: 64 kB / 1.295 GB, free: 4.938 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/1.066, allocations: 1.12 MB / 1.296 GB, free: 3.789 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/1.066, allocations: 7.938 kB / 1.296 GB, free: 3.781 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/1.066, allocations: 31.98 kB / 1.296 GB, free: 3.75 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.55e-05/1.066, allocations: 37.3 kB / 1.296 GB, free: 3.715 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003182/1.069, allocations: 1.192 MB / 1.297 GB, free: 2.52 MB / 1.014 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.006112/1.075, allocations: 3.205 MB / 1.3 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/1.077, allocations: 0.688 MB / 1.301 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008081/1.078, allocations: 418.2 kB / 1.301 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/1.079, allocations: 1.025 MB / 1.302 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/1.08, allocations: 0.5182 MB / 1.303 GB, free: 12.34 MB / 1.029 GB Notification: Performance of pre-optimization done (n=57): time 2.174e-06/1.08, allocations: 0 / 1.303 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=57): time 0.003047/1.083, allocations: 1.213 MB / 1.304 GB, free: 11.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/1.083, allocations: 148.8 kB / 1.304 GB, free: 10.94 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/1.085, allocations: 1.204 MB / 1.305 GB, free: 9.723 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.976e-05/1.085, allocations: 37.7 kB / 1.305 GB, free: 9.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004158/1.086, allocations: 441.5 kB / 1.306 GB, free: 9.246 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/1.086, allocations: 197.2 kB / 1.306 GB, free: 9.051 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002957/1.086, allocations: 142.1 kB / 1.306 GB, free: 8.906 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001551/1.086, allocations: 333.9 kB / 1.306 GB, free: 8.574 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/1.088, allocations: 460.9 kB / 1.307 GB, free: 8.121 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/1.089, allocations: 0.6094 MB / 1.307 GB, free: 7.461 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/1.091, allocations: 0.9457 MB / 1.308 GB, free: 6.461 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/1.091, allocations: 0 / 1.308 GB, free: 6.461 MB / 1.029 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003339/1.095, allocations: 1.248 MB / 1.309 GB, free: 5.199 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/1.095, allocations: 33.7 kB / 1.309 GB, free: 5.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.095, allocations: 4 kB / 1.309 GB, free: 5.156 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/1.095, allocations: 7.984 kB / 1.309 GB, free: 5.148 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009942/1.096, allocations: 203.7 kB / 1.31 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/1.096, allocations: 4 kB / 1.31 GB, free: 4.945 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/1.098, allocations: 270.4 kB / 1.31 GB, free: 4.684 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.128e-05/1.098, allocations: 35.98 kB / 1.31 GB, free: 4.648 MB / 1.029 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.0005754/1.098, allocations: 331.3 kB / 1.31 GB, free: 4.309 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/1.098, allocations: 114.6 kB / 1.31 GB, free: 4.195 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/1.101, allocations: 0.9853 MB / 1.311 GB, free: 3.195 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/1.101, allocations: 11.94 kB / 1.311 GB, free: 3.184 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.101, allocations: 0 / 1.311 GB, free: 3.184 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/1.101, allocations: 7.984 kB / 1.311 GB, free: 3.176 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/1.106, allocations: 3.162 MB / 1.314 GB, free: 15.86 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/1.106, allocations: 8 kB / 1.314 GB, free: 15.85 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/1.107, allocations: 123.8 kB / 1.315 GB, free: 15.73 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.434e-05/1.107, allocations: 8.188 kB / 1.315 GB, free: 15.72 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/1.107, allocations: 31.94 kB / 1.315 GB, free: 15.69 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.549e-05/1.107, allocations: 15.92 kB / 1.315 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/1.107, allocations: 11.94 kB / 1.315 GB, free: 15.66 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/1.109, allocations: 1.345 MB / 1.316 GB, free: 14.2 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005787/1.11, allocations: 327.4 kB / 1.316 GB, free: 13.86 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/1.11, allocations: 24 kB / 1.316 GB, free: 13.83 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/1.111, allocations: 111.9 kB / 1.316 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/1.111, allocations: 59.77 kB / 1.316 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.601e-05/1.111, allocations: 39.97 kB / 1.317 GB, free: 13.62 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001648/1.113, allocations: 0.8716 MB / 1.317 GB, free: 12.75 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/1.113, allocations: 0 / 1.317 GB, free: 12.75 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001053/1.114, allocations: 295.8 kB / 1.318 GB, free: 12.46 MB / 1.045 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.0007554/1.115, allocations: 354.2 kB / 1.318 GB, free: 12.12 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00263/1.118, allocations: 1.052 MB / 1.319 GB, free: 11.05 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/1.118, allocations: 0 / 1.319 GB, free: 11.05 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001022/1.119, allocations: 0.5145 MB / 1.32 GB, free: 10.53 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/1.121, allocations: 0.5523 MB / 1.32 GB, free: 9.996 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/1.126, allocations: 2.382 MB / 1.322 GB, free: 7.48 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007764/1.126, allocations: 1.065 MB / 1.323 GB, free: 6.387 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/1.127, allocations: 91.39 kB / 1.324 GB, free: 6.297 MB / 1.045 GB Notification: Performance of SimCode: time 9.52e-07/1.127, allocations: 3.938 kB / 1.324 GB, free: 6.293 MB / 1.045 GB Notification: Performance of Templates: time 0.02942/1.156, allocations: 18.72 MB / 1.342 GB, free: 3.711 MB / 1.061 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=400 -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