Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="IDEAS_IDEAS_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.005583/0.005583, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.001322/0.001322, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7425/0.7425, allocations: 132.2 MB / 422.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.08 kB / 0.5809 GB, free: 24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1307, allocations: 80.21 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005675/0.1364, allocations: 4.541 MB / 0.6636 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009882/0.1374, allocations: 0.8224 MB / 0.6644 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.651e-05/0.1375, allocations: 0 / 0.6644 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.1377, allocations: 31.77 kB / 0.6645 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.1378, allocations: 31.7 kB / 0.6645 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.1383, allocations: 179.3 kB / 0.6647 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000162/0.1384, allocations: 171.4 kB / 0.6648 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.6e-05/0.1385, allocations: 21.11 kB / 0.6649 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.1387, allocations: 75.75 kB / 0.6649 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.296e-05/0.1388, allocations: 83.66 kB / 0.665 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.1388, allocations: 16 kB / 0.665 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.1391, allocations: 151.8 kB / 0.6652 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.1392, allocations: 35.89 kB / 0.6652 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.231e-05/0.1392, allocations: 63.72 kB / 0.6653 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.1395, allocations: 235.5 kB / 0.6655 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1396, allocations: 4 kB / 0.6655 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1396, allocations: 4 kB / 0.6655 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.1396, allocations: 0 / 0.6655 GB, free: 4.27 MB / 0.4981 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.0007491/0.1403, allocations: 486.5 kB / 0.666 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.1404, allocations: 8.031 kB / 0.666 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.1404, allocations: 42.73 kB / 0.666 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.1405, allocations: 20.84 kB / 0.666 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.1406, allocations: 184.2 kB / 0.6662 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.1406, allocations: 7.938 kB / 0.6662 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.1406, allocations: 12 kB / 0.6662 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.1409, allocations: 123.6 kB / 0.6663 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1409, allocations: 0 / 0.6663 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.141, allocations: 4 kB / 0.6663 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.141, allocations: 4 kB / 0.6663 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.1414, allocations: 147.8 kB / 0.6665 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008666/0.1422, allocations: 472.4 kB / 0.6669 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.1425, allocations: 118.5 kB / 0.6671 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.1427, allocations: 72.81 kB / 0.6671 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001202/0.1439, allocations: 0.9682 MB / 0.6681 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.1439, allocations: 30.56 kB / 0.6681 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.465e-06/0.1439, allocations: 0 / 0.6681 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006226/0.1446, allocations: 220.1 kB / 0.6683 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.1446, allocations: 51.41 kB / 0.6684 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.1447, allocations: 167.3 kB / 0.6685 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1448, allocations: 33.64 kB / 0.6685 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.721e-05/0.1448, allocations: 104.4 kB / 0.6686 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.1449, allocations: 43.64 kB / 0.6687 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/0.1449, allocations: 49.69 kB / 0.6687 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.144e-05/0.145, allocations: 330.8 kB / 0.669 GB, free: 276 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1452, allocations: 67.95 kB / 0.6691 GB, free: 208 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1455, allocations: 116.2 kB / 0.6692 GB, free: 80 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004023/0.1459, allocations: 178.6 kB / 0.6694 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1459, allocations: 0 / 0.6694 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005255/0.1464, allocations: 249.2 kB / 0.6696 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1465, allocations: 8 kB / 0.6696 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1465, allocations: 0 / 0.6696 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1465, allocations: 0 / 0.6696 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.1468, allocations: 59.97 kB / 0.6697 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.1468, allocations: 7.922 kB / 0.6697 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1469, allocations: 31.83 kB / 0.6697 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.147, allocations: 12.09 kB / 0.6697 GB, free: 15.52 MB / 0.5137 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 8.37e-05/0.147, allocations: 117.8 kB / 0.6699 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.1471, allocations: 11.89 kB / 0.6699 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004433/0.1475, allocations: 186.8 kB / 0.67 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1475, allocations: 0 / 0.67 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1476, allocations: 4 kB / 0.6701 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.1476, allocations: 0 / 0.6701 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.1478, allocations: 217.4 kB / 0.6703 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.1478, allocations: 7.922 kB / 0.6703 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.1479, allocations: 27.98 kB / 0.6703 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1479, allocations: 0 / 0.6703 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1479, allocations: 0 / 0.6703 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.148, allocations: 4 kB / 0.6703 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.148, allocations: 0 / 0.6703 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.1484, allocations: 263.3 kB / 0.6705 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.1484, allocations: 104.9 kB / 0.6706 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.1485, allocations: 0 / 0.6706 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1486, allocations: 15.98 kB / 0.6707 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.1487, allocations: 11.98 kB / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.1487, allocations: 4 kB / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.896e-05/0.1487, allocations: 116.9 kB / 0.6708 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1488, allocations: 7.875 kB / 0.6708 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002978/0.1491, allocations: 63.86 kB / 0.6709 GB, free: 14.29 MB / 0.5137 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.000778/0.1498, allocations: 0.8437 MB / 0.6717 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004623/0.1503, allocations: 167.8 kB / 0.6718 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1503, allocations: 4 kB / 0.6718 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.1505, allocations: 67.89 kB / 0.6719 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1509, allocations: 24.17 kB / 0.6719 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.1531, allocations: 1.947 MB / 0.6738 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.1534, allocations: 0.7084 MB / 0.6745 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.391e-05/0.1534, allocations: 15.94 kB / 0.6745 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.98e-05/0.1535, allocations: 35.42 kB / 0.6746 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1535, allocations: 0 / 0.6746 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.1728, allocations: 4.271 MB / 0.6787 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.586, allocations: 16.08 kB / 0.6788 GB, free: 6.219 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)