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.001129/0.001129, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001137/0.001137, allocations: 194.3 kB / 16.14 MB, free: 6.707 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.146/1.146, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001863/0.001864, allocations: 266.9 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8367/0.8367, allocations: 169.2 MB / 0.4977 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 94.92 kB / 0.5946 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1178, allocations: 86.98 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.00475/0.1226, allocations: 4.566 MB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008402/0.1235, allocations: 0.8304 MB / 0.6848 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.1235, allocations: 0 / 0.6848 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1236, allocations: 23.83 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.361e-05/0.1237, allocations: 27.77 kB / 0.6849 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.124, allocations: 143.6 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.1242, allocations: 171.4 kB / 0.6852 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.653e-05/0.1242, allocations: 9.406 kB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1244, allocations: 79.69 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.1245, allocations: 79.67 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.1245, allocations: 8 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.1248, allocations: 143.8 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.762e-05/0.1248, allocations: 23.91 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.698e-05/0.1249, allocations: 67.64 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.1251, allocations: 235.3 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.1251, allocations: 0 / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1251, allocations: 0 / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.1251, allocations: 3.938 kB / 0.6858 GB, free: 10.65 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.0006973/0.1259, allocations: 478.9 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.1259, allocations: 12.03 kB / 0.6863 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.038e-05/0.1259, allocations: 38.73 kB / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.126, allocations: 16.83 kB / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.203e-05/0.1261, allocations: 176.2 kB / 0.6865 GB, free: 9.852 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1261, allocations: 12.38 kB / 0.6865 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.1261, allocations: 12.38 kB / 0.6865 GB, free: 9.828 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.1264, allocations: 125.4 kB / 0.6866 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.1264, allocations: 0 / 0.6866 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.1264, allocations: 4 kB / 0.6866 GB, free: 9.695 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.1264, allocations: 0 / 0.6866 GB, free: 9.695 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.1268, allocations: 141.5 kB / 0.6868 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008127/0.1276, allocations: 464.5 kB / 0.6872 GB, free: 9.055 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.1279, allocations: 126.5 kB / 0.6873 GB, free: 8.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.1281, allocations: 72.75 kB / 0.6874 GB, free: 8.848 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001155/0.1292, allocations: 0.9764 MB / 0.6884 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.1293, allocations: 34.56 kB / 0.6884 GB, free: 7.691 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.1293, allocations: 3.938 kB / 0.6884 GB, free: 7.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005681/0.1298, allocations: 213.4 kB / 0.6886 GB, free: 7.473 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.508e-05/0.1299, allocations: 55.34 kB / 0.6886 GB, free: 7.406 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.13, allocations: 168.8 kB / 0.6888 GB, free: 7.234 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.13, allocations: 33.7 kB / 0.6888 GB, free: 7.195 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.1301, allocations: 104.4 kB / 0.6889 GB, free: 7.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.1301, allocations: 43.38 kB / 0.689 GB, free: 7.047 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/0.1302, allocations: 49.7 kB / 0.689 GB, free: 6.992 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.132e-05/0.1303, allocations: 318.8 kB / 0.6893 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.1305, allocations: 87.88 kB / 0.6894 GB, free: 6.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.1307, allocations: 105.3 kB / 0.6895 GB, free: 6.473 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.1311, allocations: 173.5 kB / 0.6897 GB, free: 6.293 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1311, allocations: 0 / 0.6897 GB, free: 6.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004993/0.1316, allocations: 247.2 kB / 0.6899 GB, free: 6.047 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.1316, allocations: 7.984 kB / 0.6899 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1316, allocations: 3.938 kB / 0.6899 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.527e-06/0.1316, allocations: 4 kB / 0.6899 GB, free: 6.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.1319, allocations: 51.91 kB / 0.69 GB, free: 5.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.1319, allocations: 4 kB / 0.69 GB, free: 5.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.132, allocations: 23.83 kB / 0.69 GB, free: 5.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.1321, allocations: 16.08 kB / 0.69 GB, free: 5.938 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 7.614e-05/0.1321, allocations: 126.4 kB / 0.6901 GB, free: 5.805 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.1322, allocations: 15.81 kB / 0.6902 GB, free: 5.789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004126/0.1326, allocations: 179.2 kB / 0.6903 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1326, allocations: 0 / 0.6903 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1326, allocations: 8 kB / 0.6903 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1326, allocations: 0 / 0.6903 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.1328, allocations: 209.5 kB / 0.6905 GB, free: 5.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1328, allocations: 0 / 0.6905 GB, free: 5.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.133, allocations: 35.91 kB / 0.6906 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.133, allocations: 4 kB / 0.6906 GB, free: 5.312 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.133, allocations: 3.938 kB / 0.6906 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.133, allocations: 3.938 kB / 0.6906 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.133, allocations: 0 / 0.6906 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/0.1334, allocations: 259.2 kB / 0.6908 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.1335, allocations: 100.9 kB / 0.6909 GB, free: 4.918 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1335, allocations: 7.938 kB / 0.6909 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.1336, allocations: 11.98 kB / 0.6909 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.1337, allocations: 19.92 kB / 0.691 GB, free: 4.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.1337, allocations: 0 / 0.691 GB, free: 4.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.528e-05/0.1337, allocations: 119.2 kB / 0.6911 GB, free: 4.766 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1337, allocations: 0 / 0.6911 GB, free: 4.766 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.134, allocations: 64.05 kB / 0.6911 GB, free: 4.703 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.0007088/0.1347, allocations: 0.845 MB / 0.692 GB, free: 3.828 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.1352, allocations: 175.6 kB / 0.6921 GB, free: 3.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1352, allocations: 0 / 0.6921 GB, free: 3.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.1354, allocations: 63.95 kB / 0.6922 GB, free: 3.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1357, allocations: 24.17 kB / 0.6922 GB, free: 3.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.1378, allocations: 1.977 MB / 0.6941 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.138, allocations: 0.7009 MB / 0.6948 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.122e-05/0.1381, allocations: 27.83 kB / 0.6949 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.614e-05/0.1381, allocations: 35.42 kB / 0.6949 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1381, allocations: 0 / 0.6949 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.18/1.318, allocations: 3.97 MB / 0.6988 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/1.318, allocations: 240.9 kB / 0.699 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/3.842, allocations: 3.938 kB / 0.699 GB, free: 12.66 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)