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.001455/0.001455, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001774/0.001774, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002099, allocations: 278.8 kB / 290.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9806/0.9806, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 94 kB / 0.5947 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1774, allocations: 86.99 MB / 0.6796 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01518/0.1926, allocations: 14.35 MB / 0.6936 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006199/0.1989, allocations: 3.625 MB / 0.6972 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005596/0.1995, allocations: 15.88 kB / 0.6972 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006655/0.2001, allocations: 175.1 kB / 0.6974 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001399/0.2016, allocations: 0.5367 MB / 0.6979 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.2026, allocations: 368.3 kB / 0.6982 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001269/0.2039, allocations: 1.099 MB / 0.6993 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004175/0.2043, allocations: 316.5 kB / 0.6996 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008136/0.2052, allocations: 380.5 kB / 0.7 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.2055, allocations: 318.6 kB / 0.7003 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.2056, allocations: 32 kB / 0.7003 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005154/0.2061, allocations: 271.4 kB / 0.7006 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.2062, allocations: 99.61 kB / 0.7007 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.2064, allocations: 203.1 kB / 0.7008 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006961/0.2071, allocations: 0.5919 MB / 0.7014 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2071, allocations: 0 / 0.7014 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2071, allocations: 3.938 kB / 0.7014 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.2072, allocations: 0 / 0.7014 GB, free: 10.67 MB / 0.4981 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.001158/0.2083, allocations: 0.7418 MB / 0.7022 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2084, allocations: 8.031 kB / 0.7022 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.2086, allocations: 52.47 kB / 0.7022 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007118/0.2093, allocations: 471.8 kB / 0.7027 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.2093, allocations: 28.67 kB / 0.7027 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.2094, allocations: 27.91 kB / 0.7027 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005692/0.2099, allocations: 314.2 kB / 0.703 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.21, allocations: 0 / 0.703 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.21, allocations: 12 kB / 0.703 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.21, allocations: 8 kB / 0.703 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.2105, allocations: 198 kB / 0.7032 GB, free: 8.723 MB / 0.4981 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.001761/0.2123, allocations: 1.473 MB / 0.7047 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004414/0.2127, allocations: 158.6 kB / 0.7048 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.2129, allocations: 68.81 kB / 0.7049 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.213, allocations: 85.36 kB / 0.705 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.2133, allocations: 131.2 kB / 0.7051 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.2134, allocations: 4 kB / 0.7051 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005916/0.214, allocations: 230.6 kB / 0.7053 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.214, allocations: 59.39 kB / 0.7054 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.2144, allocations: 341.5 kB / 0.7057 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.2144, allocations: 29.7 kB / 0.7057 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2146, allocations: 215.8 kB / 0.7059 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.334e-05/0.2146, allocations: 55.2 kB / 0.706 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-05/0.2147, allocations: 53.7 kB / 0.706 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2149, allocations: 342.8 kB / 0.7064 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.215, allocations: 75.89 kB / 0.7064 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.2153, allocations: 151.1 kB / 0.7066 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004167/0.2157, allocations: 252.1 kB / 0.7068 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2157, allocations: 0 / 0.7068 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005563/0.2163, allocations: 312.4 kB / 0.7071 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.2163, allocations: 31.58 kB / 0.7071 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.2163, allocations: 4 kB / 0.7071 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2164, allocations: 7.938 kB / 0.7072 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.2166, allocations: 56.2 kB / 0.7072 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.2166, allocations: 11.94 kB / 0.7072 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.2169, allocations: 35.73 kB / 0.7073 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.2169, allocations: 15.94 kB / 0.7073 GB, free: 4.27 MB / 0.4981 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.0001525/0.2171, allocations: 162.4 kB / 0.7074 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.2171, allocations: 31.62 kB / 0.7075 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004239/0.2176, allocations: 196.5 kB / 0.7076 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.2176, allocations: 11.92 kB / 0.7077 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2176, allocations: 0 / 0.7077 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004837/0.2181, allocations: 485.1 kB / 0.7081 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004347/0.2185, allocations: 353.3 kB / 0.7085 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2185, allocations: 0 / 0.7085 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.2187, allocations: 31.97 kB / 0.7085 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2187, allocations: 4 kB / 0.7085 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2187, allocations: 8 kB / 0.7085 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.2188, allocations: 3.938 kB / 0.7085 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2188, allocations: 0 / 0.7085 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000578/0.2193, allocations: 282.3 kB / 0.7088 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.2195, allocations: 120.8 kB / 0.7089 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/0.2195, allocations: 8 kB / 0.7089 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.2198, allocations: 23.92 kB / 0.7089 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.2199, allocations: 15.97 kB / 0.7089 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.2199, allocations: 8 kB / 0.7089 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002304/0.2201, allocations: 235.2 kB / 0.7092 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.276e-06/0.2201, allocations: 4 kB / 0.7092 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004047/0.2206, allocations: 123.6 kB / 0.7093 GB, free: 2.031 MB / 0.4981 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.0003457/0.2209, allocations: 191.7 kB / 0.7095 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005046/0.2214, allocations: 231.1 kB / 0.7097 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2214, allocations: 0 / 0.7097 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.2217, allocations: 75.89 kB / 0.7098 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009443/0.2226, allocations: 217.1 kB / 0.71 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.2241, allocations: 0.8365 MB / 0.7108 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.2245, allocations: 0.7918 MB / 0.7116 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002981/0.2248, allocations: 67.19 kB / 0.7116 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.017e-05/0.2249, allocations: 39.42 kB / 0.7117 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.2249, allocations: 0 / 0.7117 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of Templates: time 0.01307/0.238, allocations: 6.798 MB / 0.7183 GB, free: 8.859 MB / 0.5137 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)