Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001271/0.001271, allocations: 110.8 kB / 15.99 MB, free: 6.348 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.001256/0.001256, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.396/1.396, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.753/2.753, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.66 kB / 0.9087 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3548, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01872/0.3736, allocations: 14.37 MB / 1.078 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.592/0.9657, allocations: 3.611 MB / 1.082 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008608/0.9666, allocations: 18.03 kB / 1.082 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007932/0.9674, allocations: 179.1 kB / 1.082 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001838/0.9693, allocations: 0.5463 MB / 1.082 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.9705, allocations: 359.8 kB / 1.083 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001846/0.9724, allocations: 1.105 MB / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005962/0.973, allocations: 309.8 kB / 1.084 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.9743, allocations: 385.8 kB / 1.084 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005049/0.9748, allocations: 316.4 kB / 1.085 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/0.9749, allocations: 32.44 kB / 1.085 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008421/0.9757, allocations: 263.8 kB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.9759, allocations: 91.39 kB / 1.085 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.9761, allocations: 211.5 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007578/0.9769, allocations: 459.3 kB / 1.086 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.9769, allocations: 4 kB / 1.086 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9769, allocations: 0 / 1.086 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.9769, allocations: 0.5938 kB / 1.086 GB, free: 10.05 MB / 0.8419 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.001262/0.9782, allocations: 0.748 MB / 1.087 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.9782, allocations: 12.47 kB / 1.087 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.9785, allocations: 47.27 kB / 1.087 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.9792, allocations: 483.5 kB / 1.087 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.9793, allocations: 19.03 kB / 1.087 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.9793, allocations: 33.05 kB / 1.087 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006676/0.98, allocations: 304.5 kB / 1.087 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.98, allocations: 5.406 kB / 1.087 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.9801, allocations: 11.73 kB / 1.087 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.9801, allocations: 6.344 kB / 1.087 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005112/0.9806, allocations: 193.5 kB / 1.088 GB, free: 9.141 MB / 0.8419 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.001944/0.9826, allocations: 1.474 MB / 1.089 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.9831, allocations: 167 kB / 1.089 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.9833, allocations: 65.08 kB / 1.089 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.9834, allocations: 86.03 kB / 1.089 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.9837, allocations: 130.2 kB / 1.089 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 2.034e-06/0.9838, allocations: 0 / 1.089 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006878/0.9844, allocations: 239 kB / 1.09 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.9845, allocations: 58.12 kB / 1.09 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/0.9849, allocations: 336.1 kB / 1.09 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.985, allocations: 36.67 kB / 1.09 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.9851, allocations: 213.9 kB / 1.09 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.9852, allocations: 51.5 kB / 1.09 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.362e-05/0.9853, allocations: 58.89 kB / 1.09 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.83e-05/0.9854, allocations: 343.2 kB / 1.091 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.9856, allocations: 69.84 kB / 1.091 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.9859, allocations: 148.2 kB / 1.091 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.9863, allocations: 251.3 kB / 1.091 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.9863, allocations: 0.9375 kB / 1.091 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006584/0.987, allocations: 313.5 kB / 1.091 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.987, allocations: 34.72 kB / 1.092 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.987, allocations: 1.5 kB / 1.092 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.9871, allocations: 4.875 kB / 1.092 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.9873, allocations: 59.52 kB / 1.092 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.9873, allocations: 4.219 kB / 1.092 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.9877, allocations: 43.09 kB / 1.092 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.9877, allocations: 14.53 kB / 1.092 GB, free: 6.57 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.0001764/0.9879, allocations: 157 kB / 1.092 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.22e-05/0.988, allocations: 33.33 kB / 1.092 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004795/0.9884, allocations: 193.2 kB / 1.092 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.9885, allocations: 10.84 kB / 1.092 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.9885, allocations: 1.031 kB / 1.092 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004217/0.9889, allocations: 483.1 kB / 1.092 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005077/0.9894, allocations: 357 kB / 1.093 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.9894, allocations: 2.031 kB / 1.093 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.9896, allocations: 28.59 kB / 1.093 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.9896, allocations: 0.9688 kB / 1.093 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.9896, allocations: 6.344 kB / 1.093 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.9896, allocations: 9 kB / 1.093 GB, free: 5.586 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.9896, allocations: 0.75 kB / 1.093 GB, free: 5.586 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.9903, allocations: 280.2 kB / 1.093 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.9904, allocations: 120.6 kB / 1.093 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.382e-05/0.9905, allocations: 6.938 kB / 1.093 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.9907, allocations: 30.42 kB / 1.093 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.567e-05/0.9908, allocations: 13.06 kB / 1.093 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.9909, allocations: 15.02 kB / 1.093 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002652/0.9911, allocations: 236.9 kB / 1.094 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9911, allocations: 0 / 1.094 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005473/0.9917, allocations: 117.7 kB / 1.094 GB, free: 5.164 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.0003733/0.9921, allocations: 195.9 kB / 1.094 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000569/0.9927, allocations: 233.5 kB / 1.094 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.9927, allocations: 0 / 1.094 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.9929, allocations: 73.91 kB / 1.094 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.994, allocations: 212.9 kB / 1.094 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.9956, allocations: 0.88 MB / 1.095 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.9959, allocations: 0.7897 MB / 1.096 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.996, allocations: 33.67 kB / 1.096 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.996, allocations: 0.5 kB / 1.096 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of Templates: time 0.01367/1.01, allocations: 5.968 MB / 1.102 GB, free: 2.832 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches