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.001652/0.001652, 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.00152/0.00152, allocations: 196.2 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002392/0.002392, allocations: 279.1 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.033/1.033, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 101.3 kB / 0.6065 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1445, allocations: 89.14 MB / 0.6936 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01653/0.1611, allocations: 14.43 MB / 0.7077 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005067/0.1662, allocations: 3.633 MB / 0.7112 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/0.1665, allocations: 23.88 kB / 0.7113 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00054/0.167, allocations: 206.7 kB / 0.7115 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.1683, allocations: 0.5868 MB / 0.712 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007964/0.1691, allocations: 383.8 kB / 0.7124 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001196/0.1703, allocations: 1.089 MB / 0.7135 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1707, allocations: 317.5 kB / 0.7138 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008123/0.1715, allocations: 378.5 kB / 0.7141 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003759/0.1719, allocations: 310.6 kB / 0.7144 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.172, allocations: 36 kB / 0.7144 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.1725, allocations: 267.5 kB / 0.7147 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1726, allocations: 103.6 kB / 0.7148 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.1728, allocations: 207 kB / 0.715 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00073/0.1736, allocations: 0.5803 MB / 0.7156 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1736, allocations: 0 / 0.7156 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1736, allocations: 0 / 0.7156 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.1736, allocations: 0 / 0.7156 GB, free: 13.67 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.001139/0.1747, allocations: 0.7496 MB / 0.7163 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.1748, allocations: 12.02 kB / 0.7163 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/0.1749, allocations: 62.73 kB / 0.7164 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.175, allocations: 48.38 kB / 0.7164 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006576/0.1757, allocations: 443.7 kB / 0.7168 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.1757, allocations: 28.62 kB / 0.7169 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.1758, allocations: 28 kB / 0.7169 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.1764, allocations: 310.2 kB / 0.7172 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1764, allocations: 0 / 0.7172 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.1765, allocations: 12 kB / 0.7172 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.1765, allocations: 4 kB / 0.7172 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.177, allocations: 198 kB / 0.7174 GB, free: 11.67 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.001822/0.1788, allocations: 1.489 MB / 0.7188 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.1793, allocations: 150.6 kB / 0.719 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.1795, allocations: 69.06 kB / 0.7191 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.1796, allocations: 89.09 kB / 0.7191 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.1799, allocations: 144.8 kB / 0.7193 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.1799, allocations: 0 / 0.7193 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006208/0.1805, allocations: 230 kB / 0.7195 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1806, allocations: 55.34 kB / 0.7196 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.181, allocations: 357.6 kB / 0.7199 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.181, allocations: 33.7 kB / 0.7199 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.1812, allocations: 211.8 kB / 0.7201 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/0.1813, allocations: 55.19 kB / 0.7202 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.104e-05/0.1813, allocations: 53.64 kB / 0.7202 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1815, allocations: 342.8 kB / 0.7206 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.1817, allocations: 71.95 kB / 0.7206 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.182, allocations: 146.6 kB / 0.7208 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.1824, allocations: 249.5 kB / 0.721 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1824, allocations: 0 / 0.721 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006012/0.183, allocations: 314.5 kB / 0.7213 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.1831, allocations: 34.02 kB / 0.7213 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1831, allocations: 4 kB / 0.7213 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1831, allocations: 7.938 kB / 0.7213 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.1833, allocations: 63.89 kB / 0.7214 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.1834, allocations: 4 kB / 0.7214 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.1836, allocations: 27.83 kB / 0.7214 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1836, allocations: 8 kB / 0.7214 GB, free: 7.207 MB / 0.5137 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.0001646/0.1838, allocations: 166.3 kB / 0.7216 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.1839, allocations: 35.62 kB / 0.7216 GB, free: 7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/0.1843, allocations: 201.6 kB / 0.7218 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1844, allocations: 3.938 kB / 0.7218 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1844, allocations: 4 kB / 0.7218 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005224/0.1849, allocations: 475.8 kB / 0.7223 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.1853, allocations: 361.2 kB / 0.7226 GB, free: 5.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1854, allocations: 4 kB / 0.7226 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.1855, allocations: 35.92 kB / 0.7227 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1855, allocations: 0 / 0.7227 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.1856, allocations: 4 kB / 0.7227 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.1856, allocations: 7.938 kB / 0.7227 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1856, allocations: 0 / 0.7227 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.1862, allocations: 287.7 kB / 0.723 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1864, allocations: 124.7 kB / 0.7231 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.1864, allocations: 4 kB / 0.7231 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.1866, allocations: 19.91 kB / 0.7231 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.1867, allocations: 15.98 kB / 0.7231 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.1867, allocations: 11.92 kB / 0.7231 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002637/0.187, allocations: 247.2 kB / 0.7234 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.187, allocations: 0 / 0.7234 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004121/0.1874, allocations: 131.7 kB / 0.7235 GB, free: 4.934 MB / 0.5137 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.00111/0.1885, allocations: 0.8909 MB / 0.7244 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005174/0.1891, allocations: 248.4 kB / 0.7246 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1891, allocations: 0 / 0.7246 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.1893, allocations: 75.89 kB / 0.7247 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009655/0.1903, allocations: 214 kB / 0.7249 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004295/0.1946, allocations: 3.072 MB / 0.7279 GB, free: 284 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.195, allocations: 0.7918 MB / 0.7286 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000264/0.1953, allocations: 67.19 kB / 0.7287 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.1955, allocations: 119.3 kB / 0.7288 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of SimCode: time 4.81e-07/0.1955, allocations: 0 / 0.7288 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.23, allocations: 10.16 MB / 0.7387 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.902, allocations: 8 kB / 0.7388 GB, free: 5.32 MB / 0.5294 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)