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: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00442/0.00442, allocations: 101.8 kB / 15.73 MB, free: 6.043 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.001261/0.001261, allocations: 188.7 kB / 16.67 MB, free: 5.965 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002401/0.002401, allocations: 282.8 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.017/1.017, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002602/0.002602, allocations: 98.41 kB / 0.6943 GB, free: 3.637 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4283, allocations: 89.15 MB / 0.7813 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01709/0.4455, allocations: 14.42 MB / 0.7954 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00639/0.4519, allocations: 3.644 MB / 0.799 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005247/0.4524, allocations: 20.84 kB / 0.799 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.4531, allocations: 204.7 kB / 0.7992 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.4545, allocations: 0.5857 MB / 0.7998 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009135/0.4555, allocations: 390.1 kB / 0.8001 GB, free: 492 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001304/0.4568, allocations: 1.097 MB / 0.8012 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.4572, allocations: 321.2 kB / 0.8015 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009115/0.4581, allocations: 388 kB / 0.8019 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003933/0.4585, allocations: 302 kB / 0.8022 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.4586, allocations: 36.78 kB / 0.8022 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005549/0.4592, allocations: 256.5 kB / 0.8024 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.4593, allocations: 92.81 kB / 0.8025 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002213/0.4595, allocations: 216.8 kB / 0.8027 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008512/0.4604, allocations: 0.5932 MB / 0.8033 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4604, allocations: 1.219 kB / 0.8033 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4604, allocations: 4 kB / 0.8033 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.523e-06/0.4604, allocations: 0 / 0.8033 GB, free: 14.48 MB / 0.5762 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.00116/0.4616, allocations: 0.7567 MB / 0.8041 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.4616, allocations: 10.31 kB / 0.8041 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.249e-05/0.4617, allocations: 63.16 kB / 0.8041 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.4619, allocations: 50.28 kB / 0.8042 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007195/0.4626, allocations: 464.3 kB / 0.8046 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.4626, allocations: 27.38 kB / 0.8046 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.4627, allocations: 26.5 kB / 0.8047 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005776/0.4633, allocations: 309.5 kB / 0.805 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4633, allocations: 0 / 0.805 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.4633, allocations: 11.41 kB / 0.805 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.4634, allocations: 6.812 kB / 0.805 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004699/0.4638, allocations: 203.6 kB / 0.8052 GB, free: 12.98 MB / 0.5762 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.001826/0.4657, allocations: 1.483 MB / 0.8066 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004354/0.4661, allocations: 158.4 kB / 0.8068 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.4663, allocations: 69.84 kB / 0.8068 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.4665, allocations: 83.52 kB / 0.8069 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.4668, allocations: 130.1 kB / 0.807 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.4668, allocations: 1.062 kB / 0.807 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0006323/0.4674, allocations: 243.1 kB / 0.8073 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.4675, allocations: 54.81 kB / 0.8073 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.4678, allocations: 343.3 kB / 0.8077 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.4679, allocations: 32.42 kB / 0.8077 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.4681, allocations: 224.1 kB / 0.8079 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/0.4681, allocations: 58.39 kB / 0.808 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.021e-05/0.4682, allocations: 57.86 kB / 0.808 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4684, allocations: 345.8 kB / 0.8083 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.4686, allocations: 73.08 kB / 0.8084 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.4688, allocations: 149.4 kB / 0.8086 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.4693, allocations: 242.2 kB / 0.8088 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4693, allocations: 1.125 kB / 0.8088 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006075/0.4699, allocations: 311.6 kB / 0.8091 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.47, allocations: 41.47 kB / 0.8091 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.47, allocations: 2.688 kB / 0.8091 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.47, allocations: 7.781 kB / 0.8091 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.4702, allocations: 53.97 kB / 0.8092 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.4702, allocations: 7.328 kB / 0.8092 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.4705, allocations: 41.39 kB / 0.8092 GB, free: 9.555 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.4705, allocations: 8.531 kB / 0.8092 GB, free: 9.555 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.0001643/0.4707, allocations: 157.8 kB / 0.8094 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.022e-05/0.4708, allocations: 36.27 kB / 0.8094 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004632/0.4712, allocations: 203.3 kB / 0.8096 GB, free: 9.266 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4712, allocations: 6.844 kB / 0.8096 GB, free: 9.262 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4713, allocations: 4 kB / 0.8096 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005356/0.4718, allocations: 485.5 kB / 0.8101 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.4723, allocations: 350.3 kB / 0.8104 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4723, allocations: 1.125 kB / 0.8104 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.4724, allocations: 31.23 kB / 0.8105 GB, free: 8.441 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4724, allocations: 0 / 0.8105 GB, free: 8.441 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.4725, allocations: 10.3 kB / 0.8105 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.4725, allocations: 5.094 kB / 0.8105 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4725, allocations: 0 / 0.8105 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.4731, allocations: 280.7 kB / 0.8107 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.4733, allocations: 124.8 kB / 0.8109 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.178e-05/0.4733, allocations: 10.2 kB / 0.8109 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.4735, allocations: 23.2 kB / 0.8109 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/0.4736, allocations: 15.55 kB / 0.8109 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.4736, allocations: 17.61 kB / 0.8109 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002588/0.4739, allocations: 246.1 kB / 0.8112 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4739, allocations: 0 / 0.8112 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004282/0.4743, allocations: 126 kB / 0.8113 GB, free: 7.898 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.001135/0.4755, allocations: 0.9141 MB / 0.8122 GB, free: 7.145 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004976/0.476, allocations: 235.2 kB / 0.8124 GB, free: 7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.476, allocations: 1.688 kB / 0.8124 GB, free: 7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.4762, allocations: 73.67 kB / 0.8125 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009384/0.4772, allocations: 204.8 kB / 0.8127 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.4814, allocations: 3.066 MB / 0.8157 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.4818, allocations: 0.7914 MB / 0.8164 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002514/0.482, allocations: 68.19 kB / 0.8165 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.4822, allocations: 117.4 kB / 0.8166 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.4822, allocations: 0 / 0.8166 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.5189, allocations: 10.22 MB / 0.8266 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.445, allocations: 15.78 kB / 0.8266 GB, free: 14.65 MB / 0.5919 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)