Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.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.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.port_a.m_flow|volSte.port_a.m_flow|volDyn.VLiq|volSte.VLiq|volDyn.T|volSte.T",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation") translateModel(Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.port_a.m_flow|volSte.port_a.m_flow|volDyn.VLiq|volSte.VLiq|volDyn.T|volSte.T",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008853, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009893/0.0009894, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.094/3.094, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004891/0.0004898, allocations: 8.875 kB / 0.9022 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4267/0.4272, allocations: 159.6 MB / 1.058 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation): time 0.1941/0.6214, allocations: 148.4 MB / 1.203 GB, free: 472 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01137/0.6329, allocations: 7.811 MB / 1.211 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008795/0.6338, allocations: 15.94 kB / 1.211 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.6349, allocations: 254.4 kB / 1.211 GB, free: 8.363 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002499/0.6374, allocations: 0.604 MB / 1.211 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005778/0.6432, allocations: 1.653 MB / 1.213 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002459/0.6456, allocations: 1.54 MB / 1.215 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006911/0.6463, allocations: 347.3 kB / 1.215 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003796/0.6501, allocations: 1.116 MB / 1.216 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008054/0.651, allocations: 418.3 kB / 1.216 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.612e-05/0.651, allocations: 24 kB / 1.216 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007353/0.6584, allocations: 3.371 MB / 1.22 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003271/0.6588, allocations: 123.5 kB / 1.22 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.6592, allocations: 149.4 kB / 1.22 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003206/0.6624, allocations: 1.789 MB / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.6624, allocations: 4 kB / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.435e-06/0.6624, allocations: 0 / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.451e-05/0.6624, allocations: 0 / 1.222 GB, free: 13.23 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002413/0.6649, allocations: 0.9161 MB / 1.223 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.6649, allocations: 8.031 kB / 1.223 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.666, allocations: 143.1 kB / 1.223 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/0.6667, allocations: 397.9 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.6667, allocations: 41.31 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.669e-05/0.6668, allocations: 55.94 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.668, allocations: 0.6643 MB / 1.224 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.6681, allocations: 0 / 1.224 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.6681, allocations: 24 kB / 1.224 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.6682, allocations: 19.95 kB / 1.224 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009839/0.6692, allocations: 479.5 kB / 1.224 GB, free: 10.36 MB / 0.9825 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.01523/0.6844, allocations: 6.502 MB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.6849, allocations: 175 kB / 1.231 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.6852, allocations: 121.3 kB / 1.231 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01073/0.696, allocations: 3.861 MB / 1.235 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.6961, allocations: 42.78 kB / 1.235 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 3.086e-06/0.6961, allocations: 0 / 1.235 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of matching and sorting (n=40): time 0.9122/1.608, allocations: 29.14 MB / 1.263 GB, free: 184.9 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/1.608, allocations: 141.2 kB / 1.263 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006158/1.609, allocations: 454.1 kB / 1.264 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/1.609, allocations: 35.83 kB / 1.264 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/1.609, allocations: 310.9 kB / 1.264 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/1.609, allocations: 145.9 kB / 1.264 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.747e-05/1.609, allocations: 12.28 kB / 1.264 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.61, allocations: 358.4 kB / 1.265 GB, free: 184 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004181/1.61, allocations: 185.4 kB / 1.265 GB, free: 184 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005171/1.61, allocations: 356.5 kB / 1.265 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/1.611, allocations: 228.6 kB / 1.265 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/1.611, allocations: 1.5 kB / 1.265 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001658/1.613, allocations: 0.699 MB / 1.266 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/1.613, allocations: 7.688 kB / 1.266 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/1.613, allocations: 3.594 kB / 1.266 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004756/1.613, allocations: 119.9 kB / 1.266 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/1.614, allocations: 118.6 kB / 1.266 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002629/1.616, allocations: 3.068 MB / 1.269 GB, free: 181 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/1.617, allocations: 48.52 kB / 1.269 GB, free: 181 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/1.617, allocations: 23.7 kB / 1.269 GB, free: 181 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002542/1.617, allocations: 192.3 kB / 1.27 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/1.617, allocations: 60.69 kB / 1.27 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/1.619, allocations: 0.6659 MB / 1.27 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/1.619, allocations: 3.906 kB / 1.27 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.619, allocations: 2.375 kB / 1.27 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.619, allocations: 1.312 kB / 1.27 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/1.621, allocations: 1.218 MB / 1.271 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/1.621, allocations: 3.156 kB / 1.271 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/1.621, allocations: 67.08 kB / 1.272 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/1.622, allocations: 77.27 kB / 1.272 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/1.622, allocations: 13.08 kB / 1.272 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/1.623, allocations: 1.57 MB / 1.273 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.623, allocations: 7.906 kB / 1.273 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/1.625, allocations: 0.7337 MB / 1.274 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/1.625, allocations: 145.3 kB / 1.274 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.61e-05/1.625, allocations: 16.23 kB / 1.274 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/1.625, allocations: 27.05 kB / 1.274 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/1.625, allocations: 38.92 kB / 1.274 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/1.625, allocations: 18.27 kB / 1.274 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006248/1.626, allocations: 341.6 kB / 1.274 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.626, allocations: 0 / 1.274 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002981/1.629, allocations: 0.5591 MB / 1.275 GB, free: 178.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (volDyn.VWat,volSte.VWat) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002464/1.632, allocations: 0.5733 MB / 1.276 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001482/1.633, allocations: 0.6626 MB / 1.276 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/1.633, allocations: 1 kB / 1.276 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005204/1.634, allocations: 286 kB / 1.276 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/1.635, allocations: 277.1 kB / 1.277 GB, free: 177.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/1.637, allocations: 1.341 MB / 1.278 GB, free: 177 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/1.637, allocations: 0.8749 MB / 1.279 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005251/1.638, allocations: 114.4 kB / 1.279 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/1.638, allocations: 44.05 kB / 1.279 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/1.638, allocations: 0 / 1.279 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.03095/1.669, allocations: 22.08 MB / 1.301 GB, free: 166.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.sim & ./Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Loads_Steam_BaseClasses_Examples_ControlVolumeCondensation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.ControlVolumeCondensation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches