Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.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.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001457/0.001457, allocations: 177.3 kB / 15.94 MB, free: 228 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.391/1.391, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.479/2.479, allocations: 436.5 MB / 0.7104 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003319, allocations: 16 kB / 0.8707 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6348/0.6351, allocations: 153.6 MB / 1.021 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01389/0.6491, allocations: 12.13 MB / 1.033 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00506/0.6542, allocations: 3.178 MB / 1.036 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.6548, allocations: 15.88 kB / 1.036 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006954/0.6555, allocations: 203 kB / 1.036 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.6572, allocations: 0.5803 MB / 1.037 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.6586, allocations: 470.1 kB / 1.037 GB, free: 0.5352 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001225/0.6598, allocations: 0.6478 MB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.6602, allocations: 238.7 kB / 1.038 GB, free: 15.65 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.6606, allocations: 275 kB / 1.038 GB, free: 15.38 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.6609, allocations: 195.1 kB / 1.038 GB, free: 15.19 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.661, allocations: 15.98 kB / 1.038 GB, free: 15.18 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005017/0.6615, allocations: 163.8 kB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.802e-05/0.6616, allocations: 71.72 kB / 1.039 GB, free: 14.95 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.6617, allocations: 105.5 kB / 1.039 GB, free: 14.84 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.6622, allocations: 428.8 kB / 1.039 GB, free: 14.42 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.6622, allocations: 0 / 1.039 GB, free: 14.42 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6622, allocations: 0 / 1.039 GB, free: 14.42 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.6622, allocations: 4 kB / 1.039 GB, free: 14.41 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001051/0.6633, allocations: 0.6755 MB / 1.04 GB, free: 13.68 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.6633, allocations: 11.98 kB / 1.04 GB, free: 13.67 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.6635, allocations: 51.53 kB / 1.04 GB, free: 13.62 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006432/0.6641, allocations: 422.7 kB / 1.04 GB, free: 13.17 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.6642, allocations: 24.48 kB / 1.04 GB, free: 13.14 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.6642, allocations: 31.98 kB / 1.04 GB, free: 13.11 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000557/0.6648, allocations: 310.2 kB / 1.041 GB, free: 12.79 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.6648, allocations: 0 / 1.041 GB, free: 12.79 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.6649, allocations: 15.98 kB / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.6649, allocations: 7.953 kB / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004656/0.6654, allocations: 210.1 kB / 1.041 GB, free: 12.56 MB / 0.795 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.001756/0.6671, allocations: 1.493 MB / 1.042 GB, free: 10.94 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.6676, allocations: 170.6 kB / 1.042 GB, free: 10.76 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.6678, allocations: 85.11 kB / 1.042 GB, free: 10.66 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.6681, allocations: 135.2 kB / 1.043 GB, free: 10.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.6681, allocations: 4 kB / 1.043 GB, free: 10.51 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006328/0.6687, allocations: 245.1 kB / 1.043 GB, free: 10.27 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.6688, allocations: 63.41 kB / 1.043 GB, free: 10.19 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.6692, allocations: 353.7 kB / 1.043 GB, free: 9.836 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.6692, allocations: 33.7 kB / 1.043 GB, free: 9.797 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.6694, allocations: 211.7 kB / 1.043 GB, free: 9.582 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.858e-05/0.6694, allocations: 55.27 kB / 1.043 GB, free: 9.527 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.6694, allocations: 8 kB / 1.043 GB, free: 9.52 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.6696, allocations: 342.8 kB / 1.044 GB, free: 9.176 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.6698, allocations: 75.95 kB / 1.044 GB, free: 9.102 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.67, allocations: 141.4 kB / 1.044 GB, free: 8.93 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.6703, allocations: 123.3 kB / 1.044 GB, free: 8.805 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.6703, allocations: 7.953 kB / 1.044 GB, free: 8.797 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005848/0.6709, allocations: 318.9 kB / 1.044 GB, free: 8.473 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.6709, allocations: 37.66 kB / 1.044 GB, free: 8.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.6709, allocations: 7.984 kB / 1.044 GB, free: 8.422 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.671, allocations: 4 kB / 1.044 GB, free: 8.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.6712, allocations: 63.89 kB / 1.045 GB, free: 8.355 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.6712, allocations: 7.938 kB / 1.045 GB, free: 8.348 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.6715, allocations: 43.77 kB / 1.045 GB, free: 8.305 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.6716, allocations: 12 kB / 1.045 GB, free: 8.293 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.6718, allocations: 161.7 kB / 1.045 GB, free: 8.125 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.6718, allocations: 31.62 kB / 1.045 GB, free: 8.094 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004709/0.6723, allocations: 215.1 kB / 1.045 GB, free: 7.883 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.6723, allocations: 0 / 1.045 GB, free: 7.883 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6723, allocations: 4 kB / 1.045 GB, free: 7.879 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004952/0.6728, allocations: 491.7 kB / 1.045 GB, free: 7.312 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004437/0.6733, allocations: 357.3 kB / 1.046 GB, free: 6.914 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.6733, allocations: 0 / 1.046 GB, free: 6.914 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.6735, allocations: 35.98 kB / 1.046 GB, free: 6.879 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.6735, allocations: 0 / 1.046 GB, free: 6.879 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.6735, allocations: 0 / 1.046 GB, free: 6.879 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.942e-06/0.6735, allocations: 11.89 kB / 1.046 GB, free: 6.867 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6735, allocations: 0 / 1.046 GB, free: 6.867 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.6741, allocations: 296.6 kB / 1.046 GB, free: 6.559 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.6743, allocations: 128.7 kB / 1.046 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.295e-05/0.6744, allocations: 12 kB / 1.046 GB, free: 6.402 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.6746, allocations: 27.88 kB / 1.046 GB, free: 6.375 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.6747, allocations: 27.86 kB / 1.046 GB, free: 6.348 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.6747, allocations: 4 kB / 1.046 GB, free: 6.344 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002687/0.675, allocations: 255.2 kB / 1.047 GB, free: 6.098 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.61e-07/0.675, allocations: 0 / 1.047 GB, free: 6.098 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004568/0.6754, allocations: 120.1 kB / 1.047 GB, free: 5.98 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002883/0.6757, allocations: 195.1 kB / 1.047 GB, free: 5.781 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004986/0.6762, allocations: 237.7 kB / 1.047 GB, free: 5.539 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.6763, allocations: 8.625 kB / 1.047 GB, free: 5.531 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.6765, allocations: 75.89 kB / 1.047 GB, free: 5.457 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000909/0.6774, allocations: 197.7 kB / 1.047 GB, free: 5.266 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.6788, allocations: 0.9412 MB / 1.048 GB, free: 4.297 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.6792, allocations: 0.8001 MB / 1.049 GB, free: 3.473 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002558/0.6795, allocations: 63.25 kB / 1.049 GB, free: 3.414 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.6796, allocations: 39.38 kB / 1.049 GB, free: 3.375 MB / 0.795 GB Notification: Performance of SimCode: time 6.91e-07/0.6796, allocations: 0 / 1.049 GB, free: 3.375 MB / 0.795 GB Notification: Performance of Templates: time 0.01164/0.6912, allocations: 6.746 MB / 1.056 GB, free: 12.73 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches