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.001066/0.001066, 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.001091/0.001091, allocations: 193.8 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.319/1.319, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002096/0.002096, allocations: 290.4 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.9181/0.9181, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003206/0.003206, allocations: 95.36 kB / 0.5953 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1538, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005749/0.1596, allocations: 4.538 MB / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009693/0.1606, allocations: 0.8186 MB / 0.6855 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.1607, allocations: 0 / 0.6855 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.1608, allocations: 27.77 kB / 0.6855 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.155e-05/0.1609, allocations: 35.7 kB / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004865/0.1614, allocations: 175.3 kB / 0.6857 GB, free: 10.99 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.1616, allocations: 171.4 kB / 0.6859 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.508e-05/0.1617, allocations: 21.38 kB / 0.6859 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.1618, allocations: 75.75 kB / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1619, allocations: 87.67 kB / 0.6861 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.162, allocations: 12 kB / 0.6861 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003149/0.1623, allocations: 155.7 kB / 0.6862 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.899e-05/0.1623, allocations: 31.91 kB / 0.6863 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.297e-05/0.1624, allocations: 67.66 kB / 0.6863 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.1627, allocations: 231.4 kB / 0.6866 GB, free: 10.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1628, allocations: 0 / 0.6866 GB, free: 10.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1628, allocations: 4 kB / 0.6866 GB, free: 10.15 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.1628, allocations: 0 / 0.6866 GB, free: 10.15 MB / 494.1 MB 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.0007907/0.1636, allocations: 486.8 kB / 0.687 GB, free: 9.629 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1636, allocations: 11.97 kB / 0.687 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.173e-05/0.1637, allocations: 42.73 kB / 0.6871 GB, free: 9.566 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.1637, allocations: 12.84 kB / 0.6871 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.1638, allocations: 176.2 kB / 0.6873 GB, free: 9.344 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1639, allocations: 16.31 kB / 0.6873 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.1639, allocations: 12.38 kB / 0.6873 GB, free: 9.316 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.1642, allocations: 127.2 kB / 0.6874 GB, free: 9.188 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1642, allocations: 0 / 0.6874 GB, free: 9.188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1642, allocations: 4 kB / 0.6874 GB, free: 9.184 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1643, allocations: 4 kB / 0.6874 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.1647, allocations: 143.9 kB / 0.6876 GB, free: 9.039 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009567/0.1656, allocations: 460.5 kB / 0.688 GB, free: 8.539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.1659, allocations: 126.4 kB / 0.6881 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.1661, allocations: 72.81 kB / 0.6882 GB, free: 8.332 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00131/0.1675, allocations: 0.9686 MB / 0.6891 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.1675, allocations: 30.56 kB / 0.6892 GB, free: 7.188 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.1675, allocations: 0 / 0.6892 GB, free: 7.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006489/0.1682, allocations: 217.3 kB / 0.6894 GB, free: 6.969 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.1682, allocations: 55.41 kB / 0.6894 GB, free: 6.902 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.1683, allocations: 167.9 kB / 0.6896 GB, free: 6.734 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.1684, allocations: 29.7 kB / 0.6896 GB, free: 6.699 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.1684, allocations: 104.4 kB / 0.6897 GB, free: 6.594 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.1685, allocations: 43.39 kB / 0.6898 GB, free: 6.551 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/0.1685, allocations: 45.7 kB / 0.6898 GB, free: 6.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.1686, allocations: 330.8 kB / 0.6901 GB, free: 6.168 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1689, allocations: 75.89 kB / 0.6902 GB, free: 6.094 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.1691, allocations: 113.3 kB / 0.6903 GB, free: 5.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.1696, allocations: 176.9 kB / 0.6905 GB, free: 5.789 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1696, allocations: 0 / 0.6905 GB, free: 5.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005598/0.1701, allocations: 243.2 kB / 0.6907 GB, free: 5.547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1701, allocations: 8 kB / 0.6907 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1702, allocations: 3.938 kB / 0.6907 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1702, allocations: 3.938 kB / 0.6907 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.1704, allocations: 55.97 kB / 0.6908 GB, free: 5.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.1705, allocations: 0 / 0.6908 GB, free: 5.477 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.1706, allocations: 35.81 kB / 0.6908 GB, free: 5.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.1707, allocations: 8 kB / 0.6908 GB, free: 5.434 MB / 494.1 MB 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 8.512e-05/0.1707, allocations: 126.5 kB / 0.6909 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.1708, allocations: 11.81 kB / 0.6909 GB, free: 5.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004645/0.1713, allocations: 182.8 kB / 0.6911 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1713, allocations: 0 / 0.6911 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1713, allocations: 4 kB / 0.6911 GB, free: 5.105 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1713, allocations: 0 / 0.6911 GB, free: 5.105 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.1715, allocations: 221.5 kB / 0.6913 GB, free: 4.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1715, allocations: 0 / 0.6913 GB, free: 4.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.1717, allocations: 31.97 kB / 0.6914 GB, free: 4.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1717, allocations: 0 / 0.6914 GB, free: 4.809 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.1717, allocations: 3.938 kB / 0.6914 GB, free: 4.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1717, allocations: 4 kB / 0.6914 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1717, allocations: 0 / 0.6914 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004353/0.1721, allocations: 271.7 kB / 0.6916 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.1722, allocations: 96.91 kB / 0.6917 GB, free: 4.406 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.1722, allocations: 3.938 kB / 0.6917 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.1724, allocations: 15.98 kB / 0.6917 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.1724, allocations: 7.984 kB / 0.6917 GB, free: 4.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.1725, allocations: 8 kB / 0.6917 GB, free: 4.371 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.273e-05/0.1725, allocations: 116 kB / 0.6919 GB, free: 4.258 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1725, allocations: 0 / 0.6919 GB, free: 4.258 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1729, allocations: 64.05 kB / 0.6919 GB, free: 4.195 MB / 494.1 MB 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.0008297/0.1737, allocations: 0.8371 MB / 0.6927 GB, free: 3.328 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004889/0.1742, allocations: 183.6 kB / 0.6929 GB, free: 3.148 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1742, allocations: 0 / 0.6929 GB, free: 3.148 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.1744, allocations: 67.89 kB / 0.693 GB, free: 3.082 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.1748, allocations: 28.11 kB / 0.693 GB, free: 3.055 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.1772, allocations: 1.95 MB / 0.6949 GB, free: 1.016 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.1774, allocations: 0.7084 MB / 0.6956 GB, free: 288 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.678e-05/0.1775, allocations: 17.47 kB / 0.6956 GB, free: 268 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.1776, allocations: 35.42 kB / 0.6957 GB, free: 236 kB / 494.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1776, allocations: 0 / 0.6957 GB, free: 236 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.1976, allocations: 4.256 MB / 0.6998 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.18/7.377, allocations: 7.125 kB / 0.6998 GB, free: 12.12 MB / 0.4981 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)