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.00493/0.00493, allocations: 96.16 kB / 15.73 MB, free: 6.043 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.001083/0.001083, allocations: 195.3 kB / 16.67 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002099/0.002099, allocations: 286.3 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9209/0.9209, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 108.3 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1503, allocations: 86.96 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005651/0.156, allocations: 4.552 MB / 0.7703 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000997/0.157, allocations: 0.8107 MB / 0.7711 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.299e-05/0.1571, allocations: 4 kB / 0.7711 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.1573, allocations: 27.83 kB / 0.7712 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.806e-05/0.1574, allocations: 39.64 kB / 0.7712 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005681/0.158, allocations: 171.4 kB / 0.7714 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.1582, allocations: 175.4 kB / 0.7715 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.055e-05/0.1583, allocations: 25.09 kB / 0.7716 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.1585, allocations: 71.77 kB / 0.7716 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.1586, allocations: 87.66 kB / 0.7717 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1586, allocations: 12 kB / 0.7717 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.159, allocations: 151.8 kB / 0.7719 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.605e-05/0.159, allocations: 35.89 kB / 0.7719 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.733e-05/0.1591, allocations: 67.72 kB / 0.772 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.1594, allocations: 239.5 kB / 0.7722 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1595, allocations: 7.984 kB / 0.7722 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1595, allocations: 0 / 0.7722 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.1595, allocations: 0 / 0.7722 GB, free: 2.453 MB / 0.5606 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.0008363/0.1603, allocations: 490.4 kB / 0.7727 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1604, allocations: 16.03 kB / 0.7727 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.1604, allocations: 34.75 kB / 0.7727 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.1605, allocations: 12.89 kB / 0.7727 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.1606, allocations: 184.2 kB / 0.7729 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.1606, allocations: 8.375 kB / 0.7729 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.1606, allocations: 12.38 kB / 0.7729 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.161, allocations: 113.6 kB / 0.773 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.161, allocations: 0 / 0.773 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.161, allocations: 4 kB / 0.773 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.161, allocations: 8 kB / 0.773 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003979/0.1614, allocations: 145.7 kB / 0.7732 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009599/0.1624, allocations: 468.5 kB / 0.7736 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.1627, allocations: 118.5 kB / 0.7737 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.1629, allocations: 76.81 kB / 0.7738 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.293/0.4559, allocations: 0.9532 MB / 0.7748 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.4559, allocations: 40.03 kB / 0.7748 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 2.144e-06/0.4559, allocations: 1.5 kB / 0.7748 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12): time 0.0006986/0.4566, allocations: 207.8 kB / 0.775 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/0.4567, allocations: 57.59 kB / 0.775 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.4568, allocations: 163 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.4568, allocations: 30.61 kB / 0.7752 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.4569, allocations: 114.7 kB / 0.7753 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.4569, allocations: 42.44 kB / 0.7754 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.457, allocations: 49.94 kB / 0.7754 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.104e-05/0.457, allocations: 328.9 kB / 0.7757 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.4573, allocations: 73.77 kB / 0.7758 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.4575, allocations: 112.8 kB / 0.7759 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.458, allocations: 177.4 kB / 0.7761 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.458, allocations: 3.375 kB / 0.7761 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005337/0.4585, allocations: 244.1 kB / 0.7763 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.4585, allocations: 6.875 kB / 0.7763 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.4585, allocations: 1.688 kB / 0.7763 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.4586, allocations: 2.719 kB / 0.7763 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.4588, allocations: 54.59 kB / 0.7764 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.4589, allocations: 4.234 kB / 0.7764 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.459, allocations: 38.05 kB / 0.7764 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.4591, allocations: 10.55 kB / 0.7764 GB, free: 14.37 MB / 0.5606 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 7.024e-05/0.4591, allocations: 126.7 kB / 0.7766 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.4592, allocations: 16.97 kB / 0.7766 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004722/0.4596, allocations: 181.8 kB / 0.7767 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4597, allocations: 1.688 kB / 0.7767 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.4597, allocations: 4.938 kB / 0.7768 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4597, allocations: 4.547 kB / 0.7768 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.4599, allocations: 215.6 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4599, allocations: 2.25 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.46, allocations: 29.22 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.46, allocations: 1 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.46, allocations: 1.156 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.4601, allocations: 0.8438 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4601, allocations: 1.094 kB / 0.777 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.4605, allocations: 262.2 kB / 0.7772 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.4605, allocations: 101.6 kB / 0.7773 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.4606, allocations: 5.125 kB / 0.7773 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.4607, allocations: 11.48 kB / 0.7774 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.4608, allocations: 19.95 kB / 0.7774 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.4608, allocations: 2.234 kB / 0.7774 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.894e-05/0.4608, allocations: 120.2 kB / 0.7775 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4608, allocations: 0 / 0.7775 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003179/0.4612, allocations: 61.86 kB / 0.7776 GB, free: 13.69 MB / 0.5606 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.000704/0.4619, allocations: 0.8461 MB / 0.7784 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004802/0.4624, allocations: 174 kB / 0.7785 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4624, allocations: 0 / 0.7785 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.4626, allocations: 68.52 kB / 0.7786 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.4629, allocations: 30.25 kB / 0.7786 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.4651, allocations: 1.958 MB / 0.7806 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.4652, allocations: 0.703 MB / 0.7812 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.666e-05/0.4653, allocations: 19.36 kB / 0.7813 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.936e-05/0.4654, allocations: 38.33 kB / 0.7813 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.4654, allocations: 1.344 kB / 0.7813 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.4857, allocations: 4.301 MB / 0.7855 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.027/7.513, allocations: 7.156 kB / 0.7855 GB, free: 10.32 MB / 0.5606 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)