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.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.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.001509/0.001509, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001585/0.001585, allocations: 194.1 kB / 16.14 MB, free: 6.645 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.834/2.834, allocations: 461.8 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 61.81 kB / 0.8984 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3614, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0165/0.3779, allocations: 14.4 MB / 1.066 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006224/0.3842, allocations: 3.674 MB / 1.07 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006603/0.3849, allocations: 19.88 kB / 1.07 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007325/0.3856, allocations: 167.1 kB / 1.07 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001659/0.3874, allocations: 0.5444 MB / 1.07 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.3885, allocations: 354.4 kB / 1.071 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001634/0.3901, allocations: 1.465 MB / 1.072 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.3905, allocations: 268.4 kB / 1.072 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004652/0.391, allocations: 330.5 kB / 1.073 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.3914, allocations: 310.6 kB / 1.073 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.3915, allocations: 16 kB / 1.073 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006734/0.3922, allocations: 243.4 kB / 1.073 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3923, allocations: 87.67 kB / 1.073 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.3925, allocations: 194.9 kB / 1.074 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006751/0.3932, allocations: 0.5805 MB / 1.074 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3932, allocations: 0 / 1.074 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.52e-07/0.3932, allocations: 0 / 1.074 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.3932, allocations: 0 / 1.074 GB, free: 2.191 MB / 0.8262 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.001261/0.3945, allocations: 0.7457 MB / 1.075 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3945, allocations: 12.03 kB / 1.075 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.3947, allocations: 44.47 kB / 1.075 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007352/0.3955, allocations: 475.8 kB / 1.075 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3955, allocations: 24.69 kB / 1.075 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.412e-05/0.3956, allocations: 28 kB / 1.075 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.3962, allocations: 310.2 kB / 1.076 GB, free: 464 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3962, allocations: 0 / 1.076 GB, free: 464 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.3963, allocations: 12 kB / 1.076 GB, free: 452 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.3963, allocations: 8 kB / 1.076 GB, free: 444 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.3968, allocations: 198.1 kB / 1.076 GB, free: 248 kB / 0.8262 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.0018/0.3986, allocations: 1.478 MB / 1.077 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004577/0.3991, allocations: 162.5 kB / 1.078 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.3992, allocations: 68.81 kB / 1.078 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002179/0.3995, allocations: 85.11 kB / 1.078 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.3998, allocations: 125.4 kB / 1.078 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3998, allocations: 3.938 kB / 1.078 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006697/0.4005, allocations: 233.1 kB / 1.078 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.4005, allocations: 59.34 kB / 1.078 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.4009, allocations: 341.6 kB / 1.078 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.4009, allocations: 33.7 kB / 1.078 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4011, allocations: 215.7 kB / 1.079 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.4011, allocations: 47.36 kB / 1.079 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.898e-05/0.4012, allocations: 53.61 kB / 1.079 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4013, allocations: 342.8 kB / 1.079 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.4016, allocations: 71.95 kB / 1.079 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.4018, allocations: 149.8 kB / 1.079 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.4022, allocations: 244.2 kB / 1.08 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4023, allocations: 0 / 1.08 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006123/0.4029, allocations: 316.7 kB / 1.08 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.4029, allocations: 30.02 kB / 1.08 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4029, allocations: 8 kB / 1.08 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.403, allocations: 7.938 kB / 1.08 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.4032, allocations: 59.84 kB / 1.08 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4032, allocations: 11.97 kB / 1.08 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.4035, allocations: 35.67 kB / 1.08 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.4035, allocations: 12 kB / 1.08 GB, free: 11.79 MB / 0.8419 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.4037, allocations: 167.3 kB / 1.08 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.464e-05/0.4038, allocations: 31.62 kB / 1.08 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004812/0.4043, allocations: 199.2 kB / 1.08 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4043, allocations: 7.938 kB / 1.08 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4043, allocations: 4 kB / 1.08 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004754/0.4048, allocations: 479.7 kB / 1.081 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004157/0.4052, allocations: 353.3 kB / 1.081 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4052, allocations: 0 / 1.081 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.4054, allocations: 31.97 kB / 1.081 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4054, allocations: 0 / 1.081 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.4054, allocations: 8 kB / 1.081 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4054, allocations: 7.875 kB / 1.081 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4055, allocations: 0 / 1.081 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006154/0.4061, allocations: 282 kB / 1.082 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.4062, allocations: 128.6 kB / 1.082 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.4063, allocations: 8 kB / 1.082 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.4065, allocations: 19.92 kB / 1.082 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.4066, allocations: 15.97 kB / 1.082 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.4066, allocations: 8 kB / 1.082 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002313/0.4069, allocations: 243.2 kB / 1.082 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4069, allocations: 0 / 1.082 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004313/0.4073, allocations: 116 kB / 1.082 GB, free: 9.547 MB / 0.8419 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 (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.0003521/0.4077, allocations: 187.1 kB / 1.082 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004981/0.4082, allocations: 223.1 kB / 1.082 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4082, allocations: 0 / 1.082 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.4084, allocations: 75.89 kB / 1.082 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009689/0.4094, allocations: 203.3 kB / 1.083 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.4108, allocations: 0.8614 MB / 1.084 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.4111, allocations: 0.7921 MB / 1.084 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002783/0.4114, allocations: 63.25 kB / 1.084 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-05/0.4115, allocations: 27.44 kB / 1.084 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of SimCode: time 7.82e-07/0.4115, allocations: 0 / 1.084 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of Templates: time 0.01179/0.4233, allocations: 6.549 MB / 1.091 GB, free: 0.6016 MB / 0.8419 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches