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.004292/0.004292, allocations: 101.7 kB / 15.73 MB, free: 5.953 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.000977/0.0009769, allocations: 187 kB / 16.67 MB, free: 5.883 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 275.1 kB / 290.8 MB, free: 1.77 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9372/0.9372, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 95.84 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1694, allocations: 86.97 MB / 0.7664 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.4533/0.6227, allocations: 14.41 MB / 0.7804 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005829/0.6286, allocations: 3.649 MB / 0.784 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000646/0.6293, allocations: 20.09 kB / 0.784 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007667/0.6301, allocations: 198.2 kB / 0.7842 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.6317, allocations: 0.5919 MB / 0.7848 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009302/0.6326, allocations: 398.2 kB / 0.7852 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001274/0.6339, allocations: 1.088 MB / 0.7862 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004585/0.6343, allocations: 318.8 kB / 0.7865 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009793/0.6353, allocations: 404.8 kB / 0.7869 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003979/0.6357, allocations: 306.8 kB / 0.7872 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.323e-05/0.6358, allocations: 32.75 kB / 0.7872 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006122/0.6364, allocations: 259.5 kB / 0.7875 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.6366, allocations: 97.02 kB / 0.7876 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.6368, allocations: 213.5 kB / 0.7878 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009484/0.6378, allocations: 0.5899 MB / 0.7884 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.6378, allocations: 0.75 kB / 0.7884 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6378, allocations: 0 / 0.7884 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.6378, allocations: 1.031 kB / 0.7884 GB, free: 3.996 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.001173/0.639, allocations: 0.7487 MB / 0.7891 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.639, allocations: 9.125 kB / 0.7891 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.6392, allocations: 51.02 kB / 0.7891 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.6399, allocations: 469.2 kB / 0.7896 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.64, allocations: 23.17 kB / 0.7896 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/0.64, allocations: 29.88 kB / 0.7896 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.6407, allocations: 306.9 kB / 0.7899 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.6407, allocations: 7.875 kB / 0.7899 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.6407, allocations: 12.28 kB / 0.79 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.6408, allocations: 3.625 kB / 0.79 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.6412, allocations: 194.4 kB / 0.7901 GB, free: 2.781 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.001681/0.6429, allocations: 1.479 MB / 0.7916 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004368/0.6434, allocations: 156.6 kB / 0.7917 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.6436, allocations: 68.39 kB / 0.7918 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.6437, allocations: 86.3 kB / 0.7919 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002898/0.644, allocations: 138.2 kB / 0.792 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.644, allocations: 0 / 0.792 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006163/0.6446, allocations: 234.1 kB / 0.7922 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.6447, allocations: 59.08 kB / 0.7923 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003463/0.645, allocations: 350.8 kB / 0.7926 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.6451, allocations: 27.83 kB / 0.7927 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.6452, allocations: 215.8 kB / 0.7929 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.6452, allocations: 56.02 kB / 0.7929 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.6453, allocations: 53.47 kB / 0.793 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.6454, allocations: 341.4 kB / 0.7933 GB, free: 380 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.6456, allocations: 68.41 kB / 0.7934 GB, free: 360 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.6458, allocations: 147.3 kB / 0.7935 GB, free: 244 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.6462, allocations: 250.2 kB / 0.7937 GB, free: 52 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6462, allocations: 0 / 0.7937 GB, free: 52 kB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005721/0.6468, allocations: 310.7 kB / 0.794 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.6468, allocations: 35.42 kB / 0.7941 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.6468, allocations: 8.422 kB / 0.7941 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.6469, allocations: 6.375 kB / 0.7941 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.6471, allocations: 56.11 kB / 0.7941 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.6471, allocations: 12.44 kB / 0.7941 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.6474, allocations: 30.55 kB / 0.7942 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.6474, allocations: 14.12 kB / 0.7942 GB, free: 15.82 MB / 0.5762 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.0001718/0.6476, allocations: 160.3 kB / 0.7943 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.6476, allocations: 36.56 kB / 0.7944 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004653/0.6481, allocations: 190.7 kB / 0.7946 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.6481, allocations: 4.125 kB / 0.7946 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.6481, allocations: 4.547 kB / 0.7946 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005619/0.6487, allocations: 490.4 kB / 0.795 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.6492, allocations: 354.6 kB / 0.7954 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.6492, allocations: 0 / 0.7954 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.6494, allocations: 32.81 kB / 0.7954 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.6494, allocations: 1.531 kB / 0.7954 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.6494, allocations: 6.25 kB / 0.7954 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.6494, allocations: 1.062 kB / 0.7954 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6494, allocations: 3.938 kB / 0.7954 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.6501, allocations: 287.8 kB / 0.7957 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.6502, allocations: 120.9 kB / 0.7958 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.6503, allocations: 3.375 kB / 0.7958 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.6505, allocations: 16.53 kB / 0.7958 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/0.6506, allocations: 24.25 kB / 0.7958 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.6506, allocations: 8.109 kB / 0.7959 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000262/0.6509, allocations: 245.7 kB / 0.7961 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6509, allocations: 0.5938 kB / 0.7961 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004628/0.6514, allocations: 129.2 kB / 0.7962 GB, free: 14.39 MB / 0.5762 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.0003574/0.6517, allocations: 201.3 kB / 0.7964 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005053/0.6522, allocations: 224.8 kB / 0.7966 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6522, allocations: 0.625 kB / 0.7966 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.6524, allocations: 78.84 kB / 0.7967 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.6535, allocations: 215.3 kB / 0.7969 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.6549, allocations: 0.7424 MB / 0.7976 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.6552, allocations: 0.7877 MB / 0.7984 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002343/0.6555, allocations: 64.75 kB / 0.7985 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.465e-05/0.6556, allocations: 32.86 kB / 0.7985 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.6556, allocations: 0 / 0.7985 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of Templates: time 0.01571/0.6713, allocations: 7.188 MB / 0.8055 GB, free: 12.28 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)