Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bui.Q_flow|bui.vol.m_flow|bui.vol.sta_a.T|bui.vol.sta_b.T|bui.sta_a.p|bui.vol.sta_a.p|bui.vol.sta_b.p|bui.vol.port_a.h_outflow|bui.vol.port_b.h_outflow|bui.steTra.port_a.h_outflow|bui.steTra.port_b.h_outflow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS") translateModel(Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bui.Q_flow|bui.vol.m_flow|bui.vol.sta_a.T|bui.vol.sta_b.T|bui.sta_a.p|bui.vol.sta_a.p|bui.vol.sta_b.p|bui.vol.port_a.h_outflow|bui.vol.port_b.h_outflow|bui.steTra.port_a.h_outflow|bui.steTra.port_b.h_outflow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001335, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001285/0.001286, allocations: 183 kB / 17.34 MB, free: 5.766 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.562/2.562, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.91 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8123/0.8138, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS): time 0.1946/1.008, allocations: 189.9 MB / 1.394 GB, free: 15.07 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.03626/1.045, allocations: 26.04 MB / 1.419 GB, free: 4.965 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003496/1.048, allocations: 59.69 kB / 1.419 GB, free: 4.906 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.006454/1.055, allocations: 1.972 MB / 1.421 GB, free: 2.926 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.01263/1.067, allocations: 4.33 MB / 1.425 GB, free: 14.59 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.00657/1.074, allocations: 2.392 MB / 1.428 GB, free: 12.2 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.01278/1.087, allocations: 7.709 MB / 1.435 GB, free: 4.469 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003601/1.09, allocations: 1.582 MB / 1.437 GB, free: 2.855 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006352/1.097, allocations: 2.376 MB / 1.439 GB, free: 484 kB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002896/1.1, allocations: 1.409 MB / 1.441 GB, free: 15.06 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0007378/1.101, allocations: 204 kB / 1.441 GB, free: 14.86 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01047/1.111, allocations: 4.724 MB / 1.445 GB, free: 10.13 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.001344/1.112, allocations: 0.666 MB / 1.446 GB, free: 9.461 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.002742/1.115, allocations: 1.229 MB / 1.447 GB, free: 8.227 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.01169/1.127, allocations: 5.762 MB / 1.453 GB, free: 2.449 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 8.515e-06/1.127, allocations: 3.938 kB / 1.453 GB, free: 2.445 MB / 1.17 GB Notification: Performance of FrontEnd: time 2.344e-06/1.127, allocations: 0 / 1.453 GB, free: 2.445 MB / 1.17 GB Notification: Performance of Transformations before backend: time 0.0001136/1.127, allocations: 0 / 1.453 GB, free: 2.445 MB / 1.17 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.008303/1.135, allocations: 2.846 MB / 1.456 GB, free: 15.53 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/1.135, allocations: 8.031 kB / 1.456 GB, free: 15.52 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/1.14, allocations: 0.6567 MB / 1.456 GB, free: 14.86 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006211/1.147, allocations: 2.867 MB / 1.459 GB, free: 11.94 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/1.147, allocations: 82.11 kB / 1.459 GB, free: 11.86 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004624/1.147, allocations: 119.9 kB / 1.459 GB, free: 11.74 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003531/1.151, allocations: 1.341 MB / 1.461 GB, free: 10.31 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/1.151, allocations: 7.938 kB / 1.461 GB, free: 10.3 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/1.151, allocations: 47.94 kB / 1.461 GB, free: 10.26 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.426e-05/1.151, allocations: 42 kB / 1.461 GB, free: 10.21 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003077/1.154, allocations: 1.124 MB / 1.462 GB, free: 9.094 MB / 1.186 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.01083/1.165, allocations: 6.829 MB / 1.468 GB, free: 1.887 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/1.167, allocations: 0.7878 MB / 1.469 GB, free: 1.074 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008172/1.168, allocations: 392 kB / 1.47 GB, free: 0.6836 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007548/1.176, allocations: 2.829 MB / 1.472 GB, free: 13.61 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001401/1.177, allocations: 0.4936 MB / 1.473 GB, free: 13.09 MB / 1.201 GB Notification: Performance of pre-optimization done (n=69): time 2.946e-06/1.177, allocations: 3.938 kB / 1.473 GB, free: 13.09 MB / 1.201 GB Notification: Performance of matching and sorting (n=83): time 0.05616/1.233, allocations: 18.9 MB / 1.491 GB, free: 10.08 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/1.233, allocations: 162.9 kB / 1.491 GB, free: 9.883 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003724/1.237, allocations: 2.028 MB / 1.493 GB, free: 7.812 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0002264/1.237, allocations: 45.7 kB / 1.493 GB, free: 7.762 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008947/1.238, allocations: 0.8655 MB / 1.494 GB, free: 6.887 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004347/1.239, allocations: 299.8 kB / 1.495 GB, free: 6.59 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006368/1.239, allocations: 343.2 kB / 1.495 GB, free: 6.25 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001041/1.24, allocations: 301.1 kB / 1.495 GB, free: 5.953 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/1.241, allocations: 0.6481 MB / 1.496 GB, free: 5.305 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/1.243, allocations: 1.077 MB / 1.497 GB, free: 4.066 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/1.246, allocations: 1.621 MB / 1.498 GB, free: 2.309 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/1.246, allocations: 4 kB / 1.498 GB, free: 2.305 MB / 1.217 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.005002/1.251, allocations: 2.116 MB / 1.501 GB, free: 172 kB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/1.251, allocations: 8 kB / 1.501 GB, free: 164 kB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/1.251, allocations: 12 kB / 1.501 GB, free: 152 kB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008113/1.252, allocations: 225.9 kB / 1.501 GB, free: 15.92 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/1.253, allocations: 319.5 kB / 1.501 GB, free: 15.61 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005161/1.258, allocations: 4.151 MB / 1.505 GB, free: 11.18 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/1.26, allocations: 115.9 kB / 1.505 GB, free: 11.07 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003223/1.261, allocations: 63.98 kB / 1.505 GB, free: 11.01 MB / 1.232 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.bui.QHea.nextTimeEvent,$whenCondition1,bui.QHea.nextTimeEventScaled,$PRE.bui.QHea.nextTimeEventScaled,bui.QHea.nextTimeEvent,bui.IntEHea.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.001347/1.262, allocations: 0.5653 MB / 1.506 GB, free: 10.43 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009048/1.263, allocations: 193.5 kB / 1.506 GB, free: 10.24 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003977/1.267, allocations: 1.482 MB / 1.507 GB, free: 8.746 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.267, allocations: 15.98 kB / 1.507 GB, free: 8.73 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.267, allocations: 0 / 1.507 GB, free: 8.73 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002542/1.27, allocations: 1.266 MB / 1.509 GB, free: 7.391 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02618/1.296, allocations: 9.308 MB / 1.518 GB, free: 13.74 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.296, allocations: 11.94 kB / 1.518 GB, free: 13.73 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000867/1.297, allocations: 188.1 kB / 1.518 GB, free: 13.54 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005606/1.297, allocations: 152.8 kB / 1.518 GB, free: 13.39 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/1.297, allocations: 31.98 kB / 1.518 GB, free: 13.36 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/1.301, allocations: 2.385 MB / 1.521 GB, free: 10.84 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.301, allocations: 8 kB / 1.521 GB, free: 10.83 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/1.305, allocations: 1.892 MB / 1.522 GB, free: 8.84 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/1.306, allocations: 406.5 kB / 1.523 GB, free: 8.422 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006931/1.307, allocations: 27.98 kB / 1.523 GB, free: 8.395 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.309, allocations: 83.83 kB / 1.523 GB, free: 8.312 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/1.309, allocations: 76.36 kB / 1.523 GB, free: 8.238 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.985e-05/1.309, allocations: 35.98 kB / 1.523 GB, free: 8.203 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.002937/1.312, allocations: 1.414 MB / 1.524 GB, free: 6.77 MB / 1.248 GB Notification: Performance of sort global known variables: time 5.81e-07/1.312, allocations: 0 / 1.524 GB, free: 6.77 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.005349/1.317, allocations: 1.39 MB / 1.526 GB, free: 5.379 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 7 (bui.port_b.h_outflow,bui.IntEHea.y,bui.pumCNR.filter.s[1],bui.pumCNR.filter.s[2],bui.vol.VWat,bui.hIn.h_out,bui.hOut.h_out) * Number of discrete variables: 3 ($whenCondition1,bui.QHea.nextTimeEvent,bui.QHea.nextTimeEventScaled) * Number of discrete states: 2 (bui.QHea.nextTimeEvent,bui.QHea.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007579/1.325, allocations: 1.316 MB / 1.527 GB, free: 4.223 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.004327/1.329, allocations: 1.652 MB / 1.529 GB, free: 2.547 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.329, allocations: 4 kB / 1.529 GB, free: 2.543 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/1.331, allocations: 0.648 MB / 1.529 GB, free: 1.887 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/1.336, allocations: 0.9583 MB / 1.53 GB, free: 0.9609 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008009/1.344, allocations: 3.822 MB / 1.534 GB, free: 13.04 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/1.346, allocations: 1.491 MB / 1.535 GB, free: 11.52 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008117/1.346, allocations: 179.4 kB / 1.536 GB, free: 11.34 MB / 1.264 GB Notification: Performance of SimCode: time 9.41e-07/1.346, allocations: 0 / 1.536 GB, free: 11.34 MB / 1.264 GB Notification: Performance of Templates: time 0.7635/2.11, allocations: 67.1 MB / 1.601 GB, free: 322.1 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.sim & ./Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_Steam_Examples_BuildingTimeSeriesAtETS.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bui.Q_flow,bui.vol.m_flow,bui.vol.sta_a.T,bui.vol.sta_b.T,bui.sta_a.p,bui.vol.sta_a.p,bui.vol.sta_b.p,bui.vol.port_a.h_outflow,bui.vol.port_b.h_outflow,bui.steTra.port_a.h_outflow,bui.steTra.port_b.h_outflow Variables in the result:bui.Q_flow,bui.sta_a.p,bui.steTra.port_a.h_outflow,bui.steTra.port_b.h_outflow,bui.vol.m_flow,bui.vol.port_a.h_outflow,bui.vol.port_b.h_outflow,bui.vol.sta_a.T,bui.vol.sta_a.p,bui.vol.sta_b.T,bui.vol.sta_b.p,time