Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.001336/0.001336, allocations: 108 kB / 15.6 MB, free: 132 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.001365/0.001365, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003745/0.003746, allocations: 290.3 kB / 290.7 MB, free: 1.848 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.068/1.068, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 104 kB / 0.6065 GB, free: 24.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1551, allocations: 89.14 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006484/0.1616, allocations: 4.541 MB / 0.698 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1628, allocations: 0.827 MB / 0.6988 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.208e-05/0.1628, allocations: 0 / 0.6988 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.163, allocations: 27.84 kB / 0.6989 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.877e-05/0.1631, allocations: 35.64 kB / 0.6989 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.1636, allocations: 167.4 kB / 0.6991 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.1638, allocations: 171.4 kB / 0.6992 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.125e-05/0.1639, allocations: 21.11 kB / 0.6992 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.1641, allocations: 79.75 kB / 0.6993 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.1642, allocations: 83.61 kB / 0.6994 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.1643, allocations: 15.94 kB / 0.6994 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.1646, allocations: 151.8 kB / 0.6996 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.744e-05/0.1646, allocations: 39.89 kB / 0.6996 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.619e-05/0.1647, allocations: 67.67 kB / 0.6997 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003429/0.1651, allocations: 235.6 kB / 0.6999 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1651, allocations: 0 / 0.6999 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1651, allocations: 0 / 0.6999 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.1651, allocations: 0 / 0.6999 GB, free: 13.75 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008704/0.166, allocations: 483.8 kB / 0.7003 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.166, allocations: 8.031 kB / 0.7004 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.806e-05/0.1661, allocations: 42.73 kB / 0.7004 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.1661, allocations: 16.75 kB / 0.7004 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1663, allocations: 187 kB / 0.7006 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.1663, allocations: 4.375 kB / 0.7006 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.1663, allocations: 12.38 kB / 0.7006 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.1666, allocations: 121.5 kB / 0.7007 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1667, allocations: 4 kB / 0.7007 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1667, allocations: 4 kB / 0.7007 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1667, allocations: 4 kB / 0.7007 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.1671, allocations: 143.8 kB / 0.7009 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.1681, allocations: 460.4 kB / 0.7013 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.1685, allocations: 122.5 kB / 0.7014 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.1687, allocations: 76.81 kB / 0.7015 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001472/0.1702, allocations: 0.9609 MB / 0.7024 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1702, allocations: 34.5 kB / 0.7025 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 3.466e-06/0.1702, allocations: 0 / 0.7025 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.000703/0.1709, allocations: 217.3 kB / 0.7027 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.171, allocations: 55.41 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.1712, allocations: 165.8 kB / 0.7029 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.1712, allocations: 29.7 kB / 0.7029 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.088e-05/0.1713, allocations: 116.4 kB / 0.703 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.1713, allocations: 39.39 kB / 0.7031 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.16e-05/0.1714, allocations: 49.69 kB / 0.7031 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1716, allocations: 326.8 kB / 0.7034 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.1718, allocations: 67.95 kB / 0.7035 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.1721, allocations: 121.3 kB / 0.7036 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.1726, allocations: 175.2 kB / 0.7038 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1726, allocations: 0 / 0.7038 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005946/0.1732, allocations: 243.4 kB / 0.704 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1733, allocations: 9.719 kB / 0.704 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1733, allocations: 3.938 kB / 0.704 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1733, allocations: 7.938 kB / 0.704 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.1736, allocations: 60 kB / 0.7041 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1736, allocations: 3.984 kB / 0.7041 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.1738, allocations: 31.81 kB / 0.7041 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.1738, allocations: 11.98 kB / 0.7041 GB, free: 9.023 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001039/0.1739, allocations: 121.8 kB / 0.7042 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.1739, allocations: 11.81 kB / 0.7043 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005045/0.1745, allocations: 178.9 kB / 0.7044 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1745, allocations: 0 / 0.7044 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1745, allocations: 0 / 0.7044 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1745, allocations: 0 / 0.7044 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.1747, allocations: 229.4 kB / 0.7046 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1748, allocations: 4 kB / 0.7046 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.1749, allocations: 27.97 kB / 0.7047 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1749, allocations: 4 kB / 0.7047 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1749, allocations: 11.88 kB / 0.7047 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.175, allocations: 0 / 0.7047 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.175, allocations: 0 / 0.7047 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004926/0.1755, allocations: 251.4 kB / 0.7049 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.1755, allocations: 100.9 kB / 0.705 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.1756, allocations: 7.938 kB / 0.705 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1757, allocations: 11.98 kB / 0.705 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.1758, allocations: 11.98 kB / 0.7051 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1758, allocations: 0 / 0.7051 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.741e-05/0.1759, allocations: 117.1 kB / 0.7052 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.934e-06/0.1759, allocations: 0 / 0.7052 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003449/0.1762, allocations: 71.98 kB / 0.7052 GB, free: 7.789 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0009369/0.1772, allocations: 0.8398 MB / 0.7061 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005246/0.1777, allocations: 175.7 kB / 0.7062 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1777, allocations: 4.188 kB / 0.7062 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.1779, allocations: 71.98 kB / 0.7063 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.1783, allocations: 24.72 kB / 0.7063 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002738/0.181, allocations: 1.949 MB / 0.7082 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.1814, allocations: 0.7123 MB / 0.7089 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.828e-05/0.1815, allocations: 13.09 kB / 0.7089 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.077e-05/0.1816, allocations: 35.42 kB / 0.709 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1816, allocations: 0 / 0.709 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.2073, allocations: 4.267 MB / 0.7131 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/7.883, allocations: 3.359 kB / 0.7131 GB, free: 15.71 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)