Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="IDEAS_IDEAS_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.005295/0.005295, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.001179/0.00118, allocations: 196 kB / 16.68 MB, free: 5.969 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7792/0.7792, allocations: 132.2 MB / 422.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 66.7 kB / 0.5808 GB, free: 24.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1399, allocations: 80.21 MB / 0.6592 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.01384/0.1538, allocations: 14.44 MB / 0.6733 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004744/0.1586, allocations: 3.642 MB / 0.6768 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003883/0.159, allocations: 19.88 kB / 0.6768 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006029/0.1596, allocations: 210.7 kB / 0.677 GB, free: 8.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001301/0.161, allocations: 0.6142 MB / 0.6776 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008414/0.1618, allocations: 406.2 kB / 0.678 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1629, allocations: 1.079 MB / 0.6791 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.1634, allocations: 317.3 kB / 0.6794 GB, free: 6 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000923/0.1643, allocations: 399.9 kB / 0.6798 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003513/0.1647, allocations: 302.7 kB / 0.6801 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.3e-05/0.1647, allocations: 36 kB / 0.6801 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005027/0.1652, allocations: 259.5 kB / 0.6803 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1654, allocations: 99.61 kB / 0.6804 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1656, allocations: 215 kB / 0.6806 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.1663, allocations: 0.5993 MB / 0.6812 GB, free: 4.113 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1663, allocations: 4 kB / 0.6812 GB, free: 4.109 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1663, allocations: 4 kB / 0.6812 GB, free: 4.105 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.1664, allocations: 0 / 0.6812 GB, free: 4.105 MB / 0.5137 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.001103/0.1675, allocations: 0.7569 MB / 0.682 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1675, allocations: 8.031 kB / 0.682 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.477e-05/0.1676, allocations: 66.72 kB / 0.682 GB, free: 3.211 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1678, allocations: 48.66 kB / 0.6821 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007201/0.1685, allocations: 474.9 kB / 0.6825 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.1685, allocations: 24.56 kB / 0.6826 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.802e-05/0.1686, allocations: 31.94 kB / 0.6826 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.1691, allocations: 310.1 kB / 0.6829 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.1692, allocations: 3.984 kB / 0.6829 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.1692, allocations: 12 kB / 0.6829 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.1692, allocations: 8 kB / 0.6829 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004518/0.1697, allocations: 194.1 kB / 0.6831 GB, free: 2.07 MB / 0.5137 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.001644/0.1713, allocations: 1.478 MB / 0.6845 GB, free: 476 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.1718, allocations: 158.6 kB / 0.6847 GB, free: 308 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.172, allocations: 72.81 kB / 0.6848 GB, free: 232 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.1721, allocations: 85.09 kB / 0.6848 GB, free: 128 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.1724, allocations: 133.2 kB / 0.685 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=15): time 1.954e-06/0.1724, allocations: 0 / 0.685 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=15): time 0.0006403/0.173, allocations: 241.2 kB / 0.6852 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.1731, allocations: 55.41 kB / 0.6853 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.1734, allocations: 349.7 kB / 0.6856 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.1735, allocations: 29.7 kB / 0.6856 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1736, allocations: 220.1 kB / 0.6858 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.1737, allocations: 51.59 kB / 0.6859 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.1738, allocations: 53.66 kB / 0.6859 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1739, allocations: 350.8 kB / 0.6863 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1741, allocations: 63.95 kB / 0.6863 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.1743, allocations: 153.3 kB / 0.6865 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.1747, allocations: 245.1 kB / 0.6867 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1747, allocations: 0 / 0.6867 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005786/0.1753, allocations: 318.9 kB / 0.687 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.1754, allocations: 31.27 kB / 0.687 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.1754, allocations: 7.938 kB / 0.687 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1754, allocations: 4 kB / 0.687 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.1756, allocations: 55.97 kB / 0.6871 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1757, allocations: 15.91 kB / 0.6871 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.1759, allocations: 32.03 kB / 0.6871 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.1759, allocations: 15.98 kB / 0.6872 GB, free: 13.6 MB / 0.5294 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.0001505/0.1761, allocations: 154.7 kB / 0.6873 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.1762, allocations: 39.7 kB / 0.6873 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004543/0.1766, allocations: 195.2 kB / 0.6875 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1766, allocations: 3.938 kB / 0.6875 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1766, allocations: 0 / 0.6875 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004657/0.1771, allocations: 495.7 kB / 0.688 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.1775, allocations: 349.4 kB / 0.6883 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1775, allocations: 3.938 kB / 0.6883 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.1777, allocations: 39.95 kB / 0.6884 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1777, allocations: 0 / 0.6884 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1777, allocations: 0 / 0.6884 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1777, allocations: 4 kB / 0.6884 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1778, allocations: 0 / 0.6884 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005945/0.1784, allocations: 292.6 kB / 0.6887 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.1785, allocations: 124.9 kB / 0.6888 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.1785, allocations: 4 kB / 0.6888 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1788, allocations: 19.94 kB / 0.6888 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.92e-05/0.1789, allocations: 19.97 kB / 0.6888 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.1789, allocations: 8 kB / 0.6888 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002345/0.1791, allocations: 251.2 kB / 0.6891 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1791, allocations: 0 / 0.6891 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004074/0.1795, allocations: 127.7 kB / 0.6892 GB, free: 11.32 MB / 0.5294 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.00105/0.1806, allocations: 0.919 MB / 0.6901 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004857/0.1811, allocations: 228.7 kB / 0.6903 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1811, allocations: 0 / 0.6903 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.1813, allocations: 68.52 kB / 0.6904 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009304/0.1822, allocations: 216 kB / 0.6906 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.1861, allocations: 3.073 MB / 0.6936 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.1864, allocations: 0.7918 MB / 0.6944 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002453/0.1867, allocations: 66.03 kB / 0.6944 GB, free: 5.781 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.1868, allocations: 119.4 kB / 0.6945 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of SimCode: time 5.21e-07/0.1868, allocations: 0 / 0.6945 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.2162, allocations: 10.22 MB / 0.7045 GB, free: 11.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.649/7.865, allocations: 4 kB / 0.7045 GB, free: 11.64 MB / 0.545 GB (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Storage_Examples_ExpansionVessel.fmu > IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)