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.001588/0.001588, allocations: 110.8 kB / 16.41 MB, free: 6.516 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.001356/0.001356, allocations: 185.2 kB / 17.34 MB, free: 5.738 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002525/0.002525, allocations: 286 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002788/0.002788, allocations: 91.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4514/0.4542, allocations: 86.97 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.0185/0.4727, allocations: 14.44 MB / 0.7811 GB, free: 5.426 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006318/0.479, allocations: 3.652 MB / 0.7847 GB, free: 1.762 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000686/0.4797, allocations: 19.88 kB / 0.7847 GB, free: 1.742 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0007505/0.4804, allocations: 206.7 kB / 0.7849 GB, free: 1.539 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.4821, allocations: 0.6259 MB / 0.7855 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.4832, allocations: 393.7 kB / 0.7859 GB, free: 0.5273 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001552/0.4848, allocations: 1.092 MB / 0.787 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004609/0.4852, allocations: 276.4 kB / 0.7872 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.4863, allocations: 399.7 kB / 0.7876 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.4867, allocations: 310.5 kB / 0.7879 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.971e-05/0.4868, allocations: 32 kB / 0.7879 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006097/0.4874, allocations: 255.5 kB / 0.7882 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.4875, allocations: 95.61 kB / 0.7883 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.4878, allocations: 223 kB / 0.7885 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009408/0.4887, allocations: 0.5895 MB / 0.7891 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4887, allocations: 0 / 0.7891 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.884e-06/0.4887, allocations: 7.938 kB / 0.7891 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.397e-06/0.4887, allocations: 0 / 0.7891 GB, free: 13.28 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.001342/0.4901, allocations: 0.7596 MB / 0.7898 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4901, allocations: 8.031 kB / 0.7898 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.4903, allocations: 56.64 kB / 0.7899 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000817/0.4911, allocations: 467.9 kB / 0.7903 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.4911, allocations: 16.94 kB / 0.7903 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.396e-05/0.4912, allocations: 31.94 kB / 0.7904 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006353/0.4918, allocations: 314.2 kB / 0.7907 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.4919, allocations: 0 / 0.7907 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.4919, allocations: 12 kB / 0.7907 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.4919, allocations: 8 kB / 0.7907 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.4924, allocations: 190.1 kB / 0.7909 GB, free: 11.32 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.002041/0.4945, allocations: 1.482 MB / 0.7923 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004682/0.4949, allocations: 158.5 kB / 0.7925 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.4951, allocations: 60.81 kB / 0.7925 GB, free: 9.488 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.4953, allocations: 89.11 kB / 0.7926 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003243/0.4956, allocations: 123.3 kB / 0.7927 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 2.134e-06/0.4956, allocations: 0 / 0.7927 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006985/0.4963, allocations: 244.3 kB / 0.793 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.4963, allocations: 59.28 kB / 0.793 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.4967, allocations: 349.7 kB / 0.7934 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.4968, allocations: 29.7 kB / 0.7934 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.497, allocations: 224 kB / 0.7936 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.497, allocations: 47.59 kB / 0.7936 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.445e-05/0.4971, allocations: 61.66 kB / 0.7937 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4973, allocations: 342.8 kB / 0.794 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.4975, allocations: 71.95 kB / 0.7941 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.4978, allocations: 147.1 kB / 0.7942 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.4983, allocations: 246.9 kB / 0.7945 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4983, allocations: 0 / 0.7945 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006569/0.4989, allocations: 312.9 kB / 0.7948 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.499, allocations: 37.64 kB / 0.7948 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.499, allocations: 0 / 0.7948 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.499, allocations: 4 kB / 0.7948 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.4992, allocations: 63.83 kB / 0.7949 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4993, allocations: 4.312 kB / 0.7949 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.4995, allocations: 39.77 kB / 0.7949 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.4996, allocations: 12 kB / 0.7949 GB, free: 6.871 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.000197/0.4998, allocations: 160.2 kB / 0.7951 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-05/0.4998, allocations: 35.77 kB / 0.7951 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005026/0.5003, allocations: 192.5 kB / 0.7953 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.5003, allocations: 7.938 kB / 0.7953 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.5003, allocations: 8 kB / 0.7953 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005708/0.5009, allocations: 487.6 kB / 0.7958 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.5014, allocations: 349.4 kB / 0.7961 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5014, allocations: 0 / 0.7961 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.5016, allocations: 27.98 kB / 0.7961 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.5016, allocations: 0 / 0.7961 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.5016, allocations: 4 kB / 0.7961 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.5016, allocations: 7.938 kB / 0.7961 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5016, allocations: 4 kB / 0.7961 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.5023, allocations: 288.6 kB / 0.7964 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.5024, allocations: 128.8 kB / 0.7965 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.5025, allocations: 0 / 0.7965 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.5027, allocations: 23.91 kB / 0.7966 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.106e-05/0.5028, allocations: 19.98 kB / 0.7966 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.5028, allocations: 7.984 kB / 0.7966 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002854/0.5031, allocations: 247.2 kB / 0.7968 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.5031, allocations: 0 / 0.7968 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004732/0.5036, allocations: 123.7 kB / 0.797 GB, free: 4.605 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.0003754/0.5039, allocations: 195 kB / 0.7971 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000539/0.5045, allocations: 229.9 kB / 0.7974 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5045, allocations: 4 kB / 0.7974 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.5047, allocations: 63.94 kB / 0.7974 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.5057, allocations: 216.7 kB / 0.7976 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.5072, allocations: 0.7457 MB / 0.7984 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.5077, allocations: 0.7918 MB / 0.7991 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002485/0.5079, allocations: 63.2 kB / 0.7992 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.289e-05/0.508, allocations: 35.42 kB / 0.7992 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of SimCode: time 7.92e-07/0.508, allocations: 0 / 0.7992 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of Templates: time 0.01454/0.5225, allocations: 7.211 MB / 0.8063 GB, free: 11.12 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)