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.001284/0.001284, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001501/0.001501, allocations: 188.2 kB / 16.25 MB, free: 6.625 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.296/1.296, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002038/0.002038, allocations: 271.2 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9365/0.9365, allocations: 169.2 MB / 0.4978 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 98.81 kB / 0.5948 GB, free: 28.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1291, allocations: 86.97 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.004945/0.1341, allocations: 4.564 MB / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008397/0.135, allocations: 0.8109 MB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.249e-05/0.135, allocations: 4 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1352, allocations: 19.89 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.025e-05/0.1352, allocations: 31.77 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.1356, allocations: 155.5 kB / 0.6852 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.1358, allocations: 175.4 kB / 0.6854 GB, free: 11.19 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.953e-05/0.1359, allocations: 21.38 kB / 0.6854 GB, free: 11.17 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.136, allocations: 75.77 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.403e-05/0.1361, allocations: 83.67 kB / 0.6855 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1361, allocations: 12 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.1364, allocations: 151.8 kB / 0.6857 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.1364, allocations: 39.89 kB / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.575e-05/0.1365, allocations: 67.66 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.1367, allocations: 235.4 kB / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1368, allocations: 0 / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1368, allocations: 4 kB / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1368, allocations: 0 / 0.686 GB, free: 10.52 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.0007295/0.1375, allocations: 486.8 kB / 0.6865 GB, free: 9.992 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1376, allocations: 15.97 kB / 0.6865 GB, free: 9.977 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.1376, allocations: 38.73 kB / 0.6865 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.1376, allocations: 20.84 kB / 0.6865 GB, free: 9.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.1377, allocations: 185.8 kB / 0.6867 GB, free: 9.691 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1378, allocations: 8.375 kB / 0.6867 GB, free: 9.684 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.1378, allocations: 12.38 kB / 0.6867 GB, free: 9.672 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.1381, allocations: 123.6 kB / 0.6869 GB, free: 9.547 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.1381, allocations: 3.984 kB / 0.6869 GB, free: 9.543 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.1381, allocations: 0 / 0.6869 GB, free: 9.543 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1381, allocations: 4 kB / 0.6869 GB, free: 9.539 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003718/0.1385, allocations: 147.9 kB / 0.687 GB, free: 9.395 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008368/0.1393, allocations: 460.4 kB / 0.6875 GB, free: 8.895 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.1396, allocations: 126.5 kB / 0.6876 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.1398, allocations: 68.81 kB / 0.6876 GB, free: 8.691 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001218/0.141, allocations: 0.9684 MB / 0.6886 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.141, allocations: 30.56 kB / 0.6886 GB, free: 7.547 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.1411, allocations: 3.938 kB / 0.6886 GB, free: 7.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005936/0.1417, allocations: 213.3 kB / 0.6888 GB, free: 7.328 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.1417, allocations: 55.41 kB / 0.6889 GB, free: 7.262 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.1418, allocations: 164.8 kB / 0.689 GB, free: 7.094 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1418, allocations: 33.7 kB / 0.6891 GB, free: 7.055 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.1419, allocations: 104.4 kB / 0.6892 GB, free: 6.949 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.1419, allocations: 39.39 kB / 0.6892 GB, free: 6.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-05/0.142, allocations: 57.69 kB / 0.6893 GB, free: 6.848 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.44e-05/0.1421, allocations: 318.8 kB / 0.6896 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.1423, allocations: 75.89 kB / 0.6896 GB, free: 6.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.1425, allocations: 113.3 kB / 0.6897 GB, free: 6.332 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.1429, allocations: 172.9 kB / 0.6899 GB, free: 6.152 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1429, allocations: 0 / 0.6899 GB, free: 6.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005187/0.1435, allocations: 255.2 kB / 0.6901 GB, free: 5.898 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.1435, allocations: 4 kB / 0.6901 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1435, allocations: 3.938 kB / 0.6902 GB, free: 5.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1435, allocations: 4 kB / 0.6902 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.1438, allocations: 47.97 kB / 0.6902 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1438, allocations: 7.938 kB / 0.6902 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.1439, allocations: 31.91 kB / 0.6902 GB, free: 5.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.144, allocations: 12 kB / 0.6903 GB, free: 5.789 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.143e-05/0.144, allocations: 118.5 kB / 0.6904 GB, free: 5.664 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1441, allocations: 11.81 kB / 0.6904 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004424/0.1445, allocations: 187.2 kB / 0.6906 GB, free: 5.469 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1445, allocations: 0 / 0.6906 GB, free: 5.469 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1445, allocations: 0 / 0.6906 GB, free: 5.469 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1446, allocations: 4 kB / 0.6906 GB, free: 5.465 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.1448, allocations: 217.5 kB / 0.6908 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1448, allocations: 0 / 0.6908 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.1449, allocations: 31.97 kB / 0.6908 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.1449, allocations: 0 / 0.6908 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.145, allocations: 7.938 kB / 0.6908 GB, free: 5.164 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.145, allocations: 4 kB / 0.6908 GB, free: 5.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.145, allocations: 4 kB / 0.6908 GB, free: 5.156 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004101/0.1454, allocations: 259.2 kB / 0.6911 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.1455, allocations: 100.9 kB / 0.6912 GB, free: 4.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1455, allocations: 7.938 kB / 0.6912 GB, free: 4.762 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1456, allocations: 15.98 kB / 0.6912 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.1457, allocations: 11.98 kB / 0.6912 GB, free: 4.734 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.1457, allocations: 0 / 0.6912 GB, free: 4.734 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.655e-05/0.1458, allocations: 119.2 kB / 0.6913 GB, free: 4.621 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1458, allocations: 7.938 kB / 0.6913 GB, free: 4.613 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.1461, allocations: 60.3 kB / 0.6914 GB, free: 4.555 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.0007791/0.1468, allocations: 0.845 MB / 0.6922 GB, free: 3.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.1473, allocations: 171.6 kB / 0.6924 GB, free: 3.512 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1473, allocations: 0 / 0.6924 GB, free: 3.512 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.1475, allocations: 80.06 kB / 0.6924 GB, free: 3.434 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.1478, allocations: 17.91 kB / 0.6925 GB, free: 3.418 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.1501, allocations: 1.979 MB / 0.6944 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.1504, allocations: 0.7045 MB / 0.6951 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.668e-05/0.1505, allocations: 19.97 kB / 0.6951 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.528e-05/0.1505, allocations: 43.42 kB / 0.6951 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1505, allocations: 4 kB / 0.6951 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4085/0.5591, allocations: 4.053 MB / 0.6991 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/0.5593, allocations: 233.8 kB / 0.6993 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.252, allocations: 1.719 kB / 0.6993 GB, free: 12.45 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)