Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001542/0.001542, allocations: 105.7 kB / 16.41 MB, free: 6.504 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.001645/0.001645, allocations: 187 kB / 17.34 MB, free: 5.742 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 284 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9503/0.9503, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 87.86 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5155/0.5175, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01819/0.5357, allocations: 14.43 MB / 0.7811 GB, free: 5.434 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005659/0.5414, allocations: 3.64 MB / 0.7847 GB, free: 1.781 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007073/0.5422, allocations: 19.88 kB / 0.7847 GB, free: 1.762 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007627/0.5429, allocations: 202.7 kB / 0.7849 GB, free: 1.562 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.5448, allocations: 0.5868 MB / 0.7855 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.5459, allocations: 392.6 kB / 0.7858 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001653/0.5475, allocations: 1.095 MB / 0.7869 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005889/0.5481, allocations: 316.2 kB / 0.7872 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.5494, allocations: 412.3 kB / 0.7876 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005734/0.55, allocations: 298.7 kB / 0.7879 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.598e-05/0.5501, allocations: 35.94 kB / 0.7879 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006725/0.5508, allocations: 259.5 kB / 0.7882 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.5509, allocations: 95.66 kB / 0.7882 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.5512, allocations: 207 kB / 0.7884 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009456/0.5522, allocations: 0.5906 MB / 0.789 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5522, allocations: 0 / 0.789 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.764e-06/0.5522, allocations: 0 / 0.789 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.5522, allocations: 0 / 0.789 GB, free: 13.32 MB / 0.5606 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.001351/0.5536, allocations: 0.7534 MB / 0.7898 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.5536, allocations: 12.03 kB / 0.7898 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.5539, allocations: 44.47 kB / 0.7898 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008292/0.5547, allocations: 463.7 kB / 0.7903 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.5547, allocations: 20.94 kB / 0.7903 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.364e-05/0.5548, allocations: 35.83 kB / 0.7903 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.5554, allocations: 318.2 kB / 0.7906 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.5554, allocations: 3.938 kB / 0.7906 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.5555, allocations: 12 kB / 0.7906 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.5555, allocations: 11.98 kB / 0.7906 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.556, allocations: 194.1 kB / 0.7908 GB, free: 11.35 MB / 0.5606 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.001852/0.5578, allocations: 1.481 MB / 0.7923 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.5583, allocations: 150.6 kB / 0.7924 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.5585, allocations: 68.81 kB / 0.7925 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.5586, allocations: 89.11 kB / 0.7926 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003013/0.5589, allocations: 123.3 kB / 0.7927 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.5589, allocations: 0 / 0.7927 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006566/0.5596, allocations: 233 kB / 0.7929 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.5597, allocations: 63.33 kB / 0.793 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.56, allocations: 345.7 kB / 0.7933 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.5601, allocations: 37.64 kB / 0.7933 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.5602, allocations: 219.7 kB / 0.7935 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.754e-05/0.5603, allocations: 51.27 kB / 0.7936 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.5604, allocations: 53.69 kB / 0.7936 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.5605, allocations: 342.8 kB / 0.794 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.5607, allocations: 63.95 kB / 0.794 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.5609, allocations: 151.1 kB / 0.7942 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.5614, allocations: 249.1 kB / 0.7944 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5614, allocations: 0 / 0.7944 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005878/0.562, allocations: 305.3 kB / 0.7947 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.562, allocations: 38 kB / 0.7947 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.562, allocations: 8 kB / 0.7947 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.5621, allocations: 4 kB / 0.7947 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.5623, allocations: 63.83 kB / 0.7948 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.5623, allocations: 7.938 kB / 0.7948 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.5626, allocations: 35.67 kB / 0.7949 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.5626, allocations: 12 kB / 0.7949 GB, free: 6.91 MB / 0.5606 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.0001671/0.5628, allocations: 160.2 kB / 0.795 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.5628, allocations: 35.62 kB / 0.795 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004768/0.5633, allocations: 191.6 kB / 0.7952 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5633, allocations: 7.938 kB / 0.7952 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5634, allocations: 0 / 0.7952 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004889/0.5638, allocations: 491.6 kB / 0.7957 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004326/0.5643, allocations: 349.3 kB / 0.796 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.5643, allocations: 4 kB / 0.796 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.5645, allocations: 31.98 kB / 0.7961 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5645, allocations: 3.938 kB / 0.7961 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.5645, allocations: 7.984 kB / 0.7961 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.5645, allocations: 7.938 kB / 0.7961 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5645, allocations: 0 / 0.7961 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006047/0.5651, allocations: 284.5 kB / 0.7964 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.5653, allocations: 120.8 kB / 0.7965 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/0.5653, allocations: 11.98 kB / 0.7965 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.5656, allocations: 23.8 kB / 0.7965 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.5656, allocations: 15.98 kB / 0.7965 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.5657, allocations: 7.984 kB / 0.7965 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002453/0.5659, allocations: 251.2 kB / 0.7968 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5659, allocations: 0 / 0.7968 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004451/0.5664, allocations: 128 kB / 0.7969 GB, free: 4.637 MB / 0.5606 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.0003742/0.5668, allocations: 191.1 kB / 0.7971 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.5673, allocations: 234.2 kB / 0.7973 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.5673, allocations: 0.625 kB / 0.7973 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.5675, allocations: 67.95 kB / 0.7974 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009714/0.5685, allocations: 207.1 kB / 0.7976 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.5699, allocations: 0.7631 MB / 0.7983 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.5702, allocations: 0.7918 MB / 0.7991 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.82e-05/0.5704, allocations: 39.42 kB / 0.7991 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.5704, allocations: 0 / 0.7991 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of Templates: time 0.009621/0.58, allocations: 6.227 MB / 0.8052 GB, free: 12.13 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)