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.001515/0.001515, allocations: 105.7 kB / 16.37 MB, free: 6.48 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.00168/0.00168, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002846/0.002846, allocations: 293.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.943/0.943, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.001751, allocations: 94.67 kB / 0.5967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1693, allocations: 86.97 MB / 0.6816 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.3223/0.4916, allocations: 14.42 MB / 0.6957 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005569/0.4972, allocations: 3.647 MB / 0.6992 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007053/0.498, allocations: 16.94 kB / 0.6992 GB, free: 8.867 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008091/0.4989, allocations: 205.2 kB / 0.6994 GB, free: 8.746 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002181/0.5011, allocations: 0.581 MB / 0.7 GB, free: 8.406 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.5024, allocations: 399.5 kB / 0.7004 GB, free: 8.188 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001803/0.5042, allocations: 1.08 MB / 0.7014 GB, free: 7.684 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005595/0.5048, allocations: 320.6 kB / 0.7018 GB, free: 7.551 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.506, allocations: 395.3 kB / 0.7021 GB, free: 7.375 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005397/0.5065, allocations: 303.3 kB / 0.7024 GB, free: 7.242 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.131e-05/0.5066, allocations: 36.22 kB / 0.7025 GB, free: 7.238 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008534/0.5075, allocations: 267.8 kB / 0.7027 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.5076, allocations: 98.53 kB / 0.7028 GB, free: 7.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.5079, allocations: 213.1 kB / 0.703 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009784/0.5088, allocations: 0.5856 MB / 0.7036 GB, free: 6.727 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.5089, allocations: 0 / 0.7036 GB, free: 6.727 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5089, allocations: 0 / 0.7036 GB, free: 6.727 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.5089, allocations: 1.5 kB / 0.7036 GB, free: 6.727 MB / 494.1 MB 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.00122/0.5101, allocations: 0.7518 MB / 0.7043 GB, free: 6.113 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5102, allocations: 9.797 kB / 0.7043 GB, free: 6.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/0.5104, allocations: 46.92 kB / 0.7044 GB, free: 6.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008344/0.5113, allocations: 463.2 kB / 0.7048 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.5113, allocations: 20.19 kB / 0.7048 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.751e-05/0.5114, allocations: 31.03 kB / 0.7049 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006647/0.5121, allocations: 307.7 kB / 0.7052 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.5121, allocations: 5.219 kB / 0.7052 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.5121, allocations: 10.88 kB / 0.7052 GB, free: 5.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.5122, allocations: 7.953 kB / 0.7052 GB, free: 5.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005104/0.5127, allocations: 194.3 kB / 0.7054 GB, free: 5.512 MB / 494.1 MB 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.5146, allocations: 1.48 MB / 0.7068 GB, free: 4.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.5151, allocations: 163.1 kB / 0.707 GB, free: 4.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.5153, allocations: 64.53 kB / 0.707 GB, free: 4.227 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.5154, allocations: 86.53 kB / 0.7071 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.5157, allocations: 129.5 kB / 0.7072 GB, free: 4.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.5157, allocations: 0 / 0.7072 GB, free: 4.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006388/0.5164, allocations: 233.1 kB / 0.7075 GB, free: 3.969 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.5164, allocations: 61.56 kB / 0.7075 GB, free: 3.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.5168, allocations: 347 kB / 0.7078 GB, free: 3.719 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.5169, allocations: 33.33 kB / 0.7079 GB, free: 3.684 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.517, allocations: 219.4 kB / 0.7081 GB, free: 3.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.5171, allocations: 51.3 kB / 0.7081 GB, free: 3.461 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.5172, allocations: 54.42 kB / 0.7082 GB, free: 3.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.5173, allocations: 344.6 kB / 0.7085 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.5175, allocations: 72.95 kB / 0.7086 GB, free: 3.074 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.5177, allocations: 152.8 kB / 0.7087 GB, free: 2.953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000414/0.5181, allocations: 240.5 kB / 0.709 GB, free: 2.777 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5181, allocations: 0.9375 kB / 0.709 GB, free: 2.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006385/0.5188, allocations: 314.3 kB / 0.7093 GB, free: 2.621 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.5188, allocations: 34.59 kB / 0.7093 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.5189, allocations: 1.406 kB / 0.7093 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.5189, allocations: 9.422 kB / 0.7093 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.5192, allocations: 62.09 kB / 0.7094 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.5192, allocations: 9.094 kB / 0.7094 GB, free: 2.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.5194, allocations: 35.2 kB / 0.7094 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.5195, allocations: 10.39 kB / 0.7094 GB, free: 2.551 MB / 494.1 MB 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.0001479/0.5196, allocations: 161.8 kB / 0.7096 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.679e-05/0.5197, allocations: 32.06 kB / 0.7096 GB, free: 2.391 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004671/0.5202, allocations: 199.1 kB / 0.7098 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.5202, allocations: 1.406 kB / 0.7098 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5202, allocations: 4.969 kB / 0.7098 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003983/0.5206, allocations: 489.5 kB / 0.7103 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004635/0.5211, allocations: 350.9 kB / 0.7106 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5211, allocations: 2.781 kB / 0.7106 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.5213, allocations: 29.36 kB / 0.7106 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5213, allocations: 5 kB / 0.7106 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.5213, allocations: 2.109 kB / 0.7106 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.5213, allocations: 2.062 kB / 0.7106 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5213, allocations: 7.875 kB / 0.7106 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.5219, allocations: 282.6 kB / 0.7109 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.5221, allocations: 121.5 kB / 0.711 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.087e-05/0.5221, allocations: 10.48 kB / 0.711 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.5224, allocations: 13.61 kB / 0.711 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.5225, allocations: 20.81 kB / 0.7111 GB, free: 1.285 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.5225, allocations: 11.8 kB / 0.7111 GB, free: 1.281 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000274/0.5228, allocations: 246.1 kB / 0.7113 GB, free: 1.152 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5228, allocations: 0 / 0.7113 GB, free: 1.152 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005359/0.5233, allocations: 128.8 kB / 0.7114 GB, free: 1.121 MB / 494.1 MB 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.0003863/0.5237, allocations: 199.4 kB / 0.7116 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.5242, allocations: 225 kB / 0.7118 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5242, allocations: 1.094 kB / 0.7118 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.5244, allocations: 76.42 kB / 0.7119 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009599/0.5254, allocations: 212.2 kB / 0.7121 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.5268, allocations: 0.7346 MB / 0.7128 GB, free: 340 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.5272, allocations: 0.7905 MB / 0.7136 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000261/0.5274, allocations: 68.22 kB / 0.7137 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.349e-05/0.5275, allocations: 36.83 kB / 0.7137 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.5275, allocations: 0.5 kB / 0.7137 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of Templates: time 0.01483/0.5424, allocations: 7.145 MB / 0.7207 GB, free: 14.03 MB / 0.4981 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)