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.000869/0.000869, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004891/0.004891, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.175/1.175, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001589/0.001589, allocations: 266.9 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8482/0.8482, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003615, allocations: 12.31 kB / 0.5988 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1219, allocations: 88.54 MB / 0.6852 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.003863/0.1258, allocations: 4.194 MB / 0.6893 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008526/0.1266, allocations: 0.8156 MB / 0.6901 GB, free: 9.906 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.1267, allocations: 0.5938 kB / 0.6901 GB, free: 9.906 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.1268, allocations: 31.81 kB / 0.6902 GB, free: 9.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.534e-05/0.1269, allocations: 26.41 kB / 0.6902 GB, free: 9.852 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.1272, allocations: 145.5 kB / 0.6903 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.1274, allocations: 167.4 kB / 0.6905 GB, free: 9.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.77e-05/0.1274, allocations: 18.61 kB / 0.6905 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.1276, allocations: 71.77 kB / 0.6906 GB, free: 9.461 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.681e-05/0.1277, allocations: 80.53 kB / 0.6906 GB, free: 9.383 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.1277, allocations: 4 kB / 0.6906 GB, free: 9.379 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.128, allocations: 141.8 kB / 0.6908 GB, free: 9.242 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.128, allocations: 27.89 kB / 0.6908 GB, free: 9.215 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.494e-05/0.1281, allocations: 85.36 kB / 0.6909 GB, free: 9.125 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.1283, allocations: 231.3 kB / 0.6911 GB, free: 8.898 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.1283, allocations: 0.6562 kB / 0.6911 GB, free: 8.898 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1283, allocations: 0 / 0.6911 GB, free: 8.898 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1284, allocations: 4 kB / 0.6911 GB, free: 8.895 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.0006637/0.129, allocations: 474.9 kB / 0.6916 GB, free: 8.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1291, allocations: 8.031 kB / 0.6916 GB, free: 8.375 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.389e-05/0.1291, allocations: 42.69 kB / 0.6916 GB, free: 8.324 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.1291, allocations: 12.75 kB / 0.6916 GB, free: 8.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.792e-05/0.1292, allocations: 186.9 kB / 0.6918 GB, free: 8.094 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1293, allocations: 4.375 kB / 0.6918 GB, free: 8.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.1293, allocations: 16.31 kB / 0.6918 GB, free: 8.074 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.1296, allocations: 129.6 kB / 0.6919 GB, free: 7.941 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.1296, allocations: 3.984 kB / 0.692 GB, free: 7.938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1296, allocations: 4 kB / 0.692 GB, free: 7.934 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1296, allocations: 4 kB / 0.692 GB, free: 7.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.13, allocations: 163.9 kB / 0.6921 GB, free: 7.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008397/0.1309, allocations: 476.4 kB / 0.6926 GB, free: 7.254 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.1312, allocations: 138.5 kB / 0.6927 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.1314, allocations: 80.81 kB / 0.6928 GB, free: 7.027 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001127/0.1325, allocations: 0.9648 MB / 0.6937 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.1325, allocations: 30.56 kB / 0.6937 GB, free: 5.887 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.1325, allocations: 0 / 0.6937 GB, free: 5.887 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006278/0.1332, allocations: 249.2 kB / 0.694 GB, free: 5.637 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.1332, allocations: 59.41 kB / 0.694 GB, free: 5.566 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1333, allocations: 164.9 kB / 0.6942 GB, free: 5.398 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.1333, allocations: 33.7 kB / 0.6942 GB, free: 5.359 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.1334, allocations: 100.4 kB / 0.6943 GB, free: 5.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.1334, allocations: 39.39 kB / 0.6944 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.1335, allocations: 29.7 kB / 0.6944 GB, free: 5.184 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.314e-05/0.1336, allocations: 326.8 kB / 0.6947 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.1338, allocations: 87.88 kB / 0.6948 GB, free: 4.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.134, allocations: 125.3 kB / 0.6949 GB, free: 4.637 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.1344, allocations: 195.2 kB / 0.6951 GB, free: 4.434 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1345, allocations: 0 / 0.6951 GB, free: 4.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005336/0.135, allocations: 263 kB / 0.6953 GB, free: 4.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.135, allocations: 5.562 kB / 0.6954 GB, free: 4.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.135, allocations: 3.938 kB / 0.6954 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.135, allocations: 12.08 kB / 0.6954 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.1353, allocations: 59.91 kB / 0.6954 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1353, allocations: 4 kB / 0.6954 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.1355, allocations: 35.73 kB / 0.6955 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1355, allocations: 7.984 kB / 0.6955 GB, free: 4.047 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.811e-05/0.1356, allocations: 130.4 kB / 0.6956 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.1356, allocations: 7.906 kB / 0.6956 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004631/0.1361, allocations: 207.2 kB / 0.6958 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1361, allocations: 4 kB / 0.6958 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.1361, allocations: 0 / 0.6958 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1361, allocations: 0 / 0.6958 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.1363, allocations: 225.4 kB / 0.696 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1363, allocations: 0 / 0.696 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.1365, allocations: 39.97 kB / 0.6961 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-06/0.1365, allocations: 0 / 0.6961 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1365, allocations: 3.938 kB / 0.6961 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1365, allocations: 0 / 0.6961 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1365, allocations: 4 kB / 0.6961 GB, free: 3.379 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.1369, allocations: 275.3 kB / 0.6963 GB, free: 3.094 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.734e-05/0.137, allocations: 100.9 kB / 0.6964 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.137, allocations: 7.938 kB / 0.6964 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1372, allocations: 19.98 kB / 0.6964 GB, free: 2.949 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.1372, allocations: 7.984 kB / 0.6965 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.1372, allocations: 4 kB / 0.6965 GB, free: 2.938 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.618e-05/0.1373, allocations: 119.2 kB / 0.6966 GB, free: 2.824 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1373, allocations: 0 / 0.6966 GB, free: 2.824 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002837/0.1376, allocations: 60.06 kB / 0.6966 GB, free: 2.766 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.0007578/0.1384, allocations: 0.8762 MB / 0.6975 GB, free: 1.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004724/0.1388, allocations: 195.8 kB / 0.6977 GB, free: 1.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1388, allocations: 0 / 0.6977 GB, free: 1.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.139, allocations: 75.89 kB / 0.6977 GB, free: 1.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.1394, allocations: 30.61 kB / 0.6978 GB, free: 1.566 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.1416, allocations: 2.042 MB / 0.6998 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.1418, allocations: 0.7048 MB / 0.7005 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.293e-05/0.1419, allocations: 23.94 kB / 0.7005 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.142, allocations: 35.42 kB / 0.7005 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.142, allocations: 0 / 0.7005 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.504/0.6459, allocations: 3.886 MB / 0.7043 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002567/0.6462, allocations: 233.6 kB / 0.7045 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.363, allocations: 2 kB / 0.7045 GB, free: 10.71 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)