Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_8_Buildings_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.001227/0.001228, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 193.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.784/1.784, allocations: 292.3 MB / 0.5489 GB, free: 12.78 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 69.72 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2413, allocations: 114.5 MB / 0.7835 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.007197/0.2486, allocations: 4.586 MB / 0.788 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2498, allocations: 0.8108 MB / 0.7888 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.948e-05/0.2498, allocations: 0 / 0.7888 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.2501, allocations: 31.77 kB / 0.7888 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.484e-05/0.2501, allocations: 35.7 kB / 0.7888 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.2506, allocations: 171.4 kB / 0.789 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.2509, allocations: 171.4 kB / 0.7891 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.771e-05/0.251, allocations: 17.11 kB / 0.7892 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.2511, allocations: 83.62 kB / 0.7892 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.2513, allocations: 79.72 kB / 0.7893 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.82e-05/0.2513, allocations: 16 kB / 0.7893 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.2516, allocations: 151.8 kB / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.592e-05/0.2517, allocations: 35.89 kB / 0.7895 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.2518, allocations: 67.66 kB / 0.7896 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.2521, allocations: 239.6 kB / 0.7898 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2521, allocations: 0 / 0.7898 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2521, allocations: 0 / 0.7898 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.2521, allocations: 0 / 0.7898 GB, free: 6.828 MB / 0.6075 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.0008463/0.253, allocations: 482.9 kB / 0.7903 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.253, allocations: 8.031 kB / 0.7903 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.2531, allocations: 38.75 kB / 0.7903 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.2531, allocations: 16.75 kB / 0.7903 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.2533, allocations: 191.2 kB / 0.7905 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.2533, allocations: 12.12 kB / 0.7905 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.2533, allocations: 12 kB / 0.7905 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.2537, allocations: 120.3 kB / 0.7906 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2537, allocations: 0 / 0.7906 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.2537, allocations: 4 kB / 0.7906 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2537, allocations: 3.984 kB / 0.7907 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.2541, allocations: 139.8 kB / 0.7908 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2551, allocations: 468.4 kB / 0.7912 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.2554, allocations: 126.5 kB / 0.7914 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.2557, allocations: 68.81 kB / 0.7914 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.257, allocations: 0.9683 MB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.2571, allocations: 46.44 kB / 0.7924 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.2571, allocations: 0 / 0.7924 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006681/0.2578, allocations: 205.4 kB / 0.7926 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.2578, allocations: 55.34 kB / 0.7927 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.258, allocations: 173.3 kB / 0.7928 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.258, allocations: 29.7 kB / 0.7929 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.2581, allocations: 108.4 kB / 0.793 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.2581, allocations: 35.45 kB / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-05/0.2582, allocations: 49.7 kB / 0.793 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2583, allocations: 326.8 kB / 0.7933 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.2586, allocations: 71.94 kB / 0.7934 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.2588, allocations: 118.2 kB / 0.7935 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000418/0.2593, allocations: 175.1 kB / 0.7937 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2593, allocations: 4 kB / 0.7937 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005592/0.2598, allocations: 235.7 kB / 0.7939 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2599, allocations: 4 kB / 0.7939 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2599, allocations: 8.094 kB / 0.7939 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.2599, allocations: 0 / 0.7939 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.2602, allocations: 59.89 kB / 0.794 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2602, allocations: 4 kB / 0.794 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.2604, allocations: 31.77 kB / 0.794 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.2604, allocations: 7.984 kB / 0.794 GB, free: 2.113 MB / 0.6075 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 9.436e-05/0.2605, allocations: 125.8 kB / 0.7942 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.715e-05/0.2605, allocations: 19.75 kB / 0.7942 GB, free: 1.961 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004784/0.261, allocations: 170.9 kB / 0.7943 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.261, allocations: 4 kB / 0.7943 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.261, allocations: 0 / 0.7943 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.261, allocations: 0 / 0.7943 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.2613, allocations: 221.4 kB / 0.7946 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2613, allocations: 4 kB / 0.7946 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.2614, allocations: 39.84 kB / 0.7946 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2614, allocations: 3.984 kB / 0.7946 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.2615, allocations: 3.938 kB / 0.7946 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2615, allocations: 4 kB / 0.7946 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2615, allocations: 0 / 0.7946 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.2619, allocations: 259.3 kB / 0.7949 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.262, allocations: 104.8 kB / 0.795 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.262, allocations: 0 / 0.795 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2622, allocations: 15.98 kB / 0.795 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.2622, allocations: 7.984 kB / 0.795 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.2623, allocations: 4 kB / 0.795 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.648e-05/0.2623, allocations: 118.1 kB / 0.7951 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2624, allocations: 4 kB / 0.7951 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003412/0.2627, allocations: 60.31 kB / 0.7952 GB, free: 0.8672 MB / 0.6075 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.0009452/0.2637, allocations: 0.8449 MB / 0.796 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.2642, allocations: 180.6 kB / 0.7961 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2642, allocations: 0 / 0.7961 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.2644, allocations: 63.95 kB / 0.7962 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.2648, allocations: 24.14 kB / 0.7962 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.2673, allocations: 1.955 MB / 0.7981 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.2676, allocations: 0.7006 MB / 0.7988 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.796e-05/0.2677, allocations: 21.02 kB / 0.7988 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.2678, allocations: 35.42 kB / 0.7989 GB, free: 12.9 MB / 0.6231 GB Notification: Performance of SimCode: time 4.61e-07/0.2678, allocations: 3.938 kB / 0.7989 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.2886, allocations: 4.239 MB / 0.803 GB, free: 8.805 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/8.223, allocations: 11.94 kB / 0.803 GB, free: 8.793 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)