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.001065/0.001065, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 195 kB / 16.53 MB, free: 6.664 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002168/0.002168, allocations: 286.9 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9292/0.9292, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 103.1 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1298, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01339/0.1433, allocations: 14.41 MB / 0.6944 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004347/0.1477, allocations: 3.655 MB / 0.6979 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.1479, allocations: 15.94 kB / 0.6979 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.1485, allocations: 202.7 kB / 0.6981 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.1495, allocations: 0.5868 MB / 0.6987 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007228/0.1503, allocations: 386.9 kB / 0.6991 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009798/0.1513, allocations: 1.083 MB / 0.7001 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.1516, allocations: 312.6 kB / 0.7004 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007102/0.1523, allocations: 386.3 kB / 0.7008 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.1527, allocations: 310.5 kB / 0.7011 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.391e-05/0.1527, allocations: 36 kB / 0.7011 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000454/0.1532, allocations: 255.6 kB / 0.7014 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.1533, allocations: 103.6 kB / 0.7015 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1535, allocations: 211 kB / 0.7017 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000638/0.1542, allocations: 0.5764 MB / 0.7022 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1542, allocations: 0 / 0.7022 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1542, allocations: 0 / 0.7022 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.1542, allocations: 0 / 0.7022 GB, free: 10.05 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.001004/0.1552, allocations: 0.7574 MB / 0.703 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.1552, allocations: 8.031 kB / 0.703 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.079e-05/0.1553, allocations: 58.73 kB / 0.703 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.1555, allocations: 48.45 kB / 0.7031 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006318/0.1561, allocations: 439.7 kB / 0.7035 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.1562, allocations: 24.69 kB / 0.7035 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1562, allocations: 27.98 kB / 0.7036 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005121/0.1567, allocations: 310.2 kB / 0.7038 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1567, allocations: 0 / 0.7038 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.1568, allocations: 15.94 kB / 0.7039 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1568, allocations: 11.98 kB / 0.7039 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004331/0.1572, allocations: 194.1 kB / 0.7041 GB, free: 8.051 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.001594/0.1589, allocations: 1.497 MB / 0.7055 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004055/0.1593, allocations: 153.2 kB / 0.7057 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.1594, allocations: 72.75 kB / 0.7057 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.1596, allocations: 85.11 kB / 0.7058 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.1599, allocations: 131.5 kB / 0.7059 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1599, allocations: 0 / 0.7059 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005827/0.1605, allocations: 227.7 kB / 0.7062 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.1605, allocations: 67.27 kB / 0.7062 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.1608, allocations: 353.5 kB / 0.7066 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1609, allocations: 33.7 kB / 0.7066 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.161, allocations: 215.8 kB / 0.7068 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.099e-05/0.1611, allocations: 59.19 kB / 0.7069 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.552e-05/0.1611, allocations: 49.7 kB / 0.7069 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1613, allocations: 342.8 kB / 0.7072 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1614, allocations: 63.95 kB / 0.7073 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.1617, allocations: 157.4 kB / 0.7074 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.1621, allocations: 252.8 kB / 0.7077 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1621, allocations: 0 / 0.7077 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005486/0.1627, allocations: 308.5 kB / 0.708 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.1627, allocations: 41.62 kB / 0.708 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1627, allocations: 4.312 kB / 0.708 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1627, allocations: 11.94 kB / 0.708 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.1629, allocations: 55.91 kB / 0.7081 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.163, allocations: 4 kB / 0.7081 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.1632, allocations: 39.61 kB / 0.7081 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.1632, allocations: 12 kB / 0.7081 GB, free: 3.562 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.0001386/0.1634, allocations: 158.4 kB / 0.7083 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/0.1634, allocations: 31.62 kB / 0.7083 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004328/0.1639, allocations: 192.5 kB / 0.7085 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1639, allocations: 7.938 kB / 0.7085 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1639, allocations: 0 / 0.7085 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004568/0.1644, allocations: 479.8 kB / 0.709 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.1647, allocations: 357.3 kB / 0.7093 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1648, allocations: 3.938 kB / 0.7093 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.1649, allocations: 35.98 kB / 0.7093 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.1649, allocations: 4 kB / 0.7094 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.165, allocations: 3.984 kB / 0.7094 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.165, allocations: 3.938 kB / 0.7094 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.165, allocations: 0 / 0.7094 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005695/0.1655, allocations: 282.5 kB / 0.7096 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1657, allocations: 128.8 kB / 0.7098 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/0.1657, allocations: 15.92 kB / 0.7098 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.166, allocations: 15.92 kB / 0.7098 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.166, allocations: 15.98 kB / 0.7098 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.1661, allocations: 7.984 kB / 0.7098 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002286/0.1663, allocations: 251.2 kB / 0.71 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1663, allocations: 0 / 0.71 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003755/0.1667, allocations: 119.8 kB / 0.7102 GB, free: 1.312 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.0009741/0.1677, allocations: 0.9202 MB / 0.7111 GB, free: 368 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004576/0.1681, allocations: 232.7 kB / 0.7113 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1681, allocations: 0 / 0.7113 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.1683, allocations: 71.89 kB / 0.7113 GB, free: 52 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000917/0.1692, allocations: 217.1 kB / 0.7116 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.173, allocations: 3.068 MB / 0.7146 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1734, allocations: 0.784 MB / 0.7153 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002325/0.1736, allocations: 71.17 kB / 0.7154 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.1738, allocations: 123.3 kB / 0.7155 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.1738, allocations: 0 / 0.7155 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02704/0.2008, allocations: 10.15 MB / 0.7254 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.944/7.144, allocations: 13.16 kB / 0.7254 GB, free: 1.691 MB / 0.5137 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)