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.001557/0.001557, allocations: 105.4 kB / 15.7 MB, free: 24 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.001814/0.001814, allocations: 198.2 kB / 16.64 MB, free: 6.449 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.445/1.445, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.637/1.637, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.002433/0.002433, allocations: 73.33 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.238, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005811/0.2439, allocations: 4.591 MB / 0.7881 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009742/0.2449, allocations: 0.8108 MB / 0.7889 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.196e-05/0.2449, allocations: 0 / 0.7889 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.2452, allocations: 31.77 kB / 0.7889 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.563e-05/0.2452, allocations: 35.64 kB / 0.789 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.2457, allocations: 171.4 kB / 0.7891 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.2459, allocations: 175.4 kB / 0.7893 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.227e-05/0.246, allocations: 28.88 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.2462, allocations: 75.77 kB / 0.7894 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.2463, allocations: 75.72 kB / 0.7895 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.2463, allocations: 16 kB / 0.7895 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003035/0.2466, allocations: 155.7 kB / 0.7896 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.508e-05/0.2467, allocations: 35.89 kB / 0.7897 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.322e-05/0.2467, allocations: 63.72 kB / 0.7897 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003215/0.2471, allocations: 239.6 kB / 0.79 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2471, allocations: 4 kB / 0.79 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2471, allocations: 4 kB / 0.79 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2471, allocations: 4 kB / 0.79 GB, free: 6.738 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.0008257/0.2479, allocations: 474.9 kB / 0.7904 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.248, allocations: 11.97 kB / 0.7904 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.275e-05/0.248, allocations: 42.75 kB / 0.7905 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/0.2481, allocations: 20.75 kB / 0.7905 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.2482, allocations: 187.2 kB / 0.7907 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2482, allocations: 16.06 kB / 0.7907 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.2483, allocations: 8 kB / 0.7907 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.2486, allocations: 114.6 kB / 0.7908 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2486, allocations: 0 / 0.7908 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.2486, allocations: 4 kB / 0.7908 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2486, allocations: 4 kB / 0.7908 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.249, allocations: 143.9 kB / 0.791 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009228/0.2499, allocations: 472.3 kB / 0.7914 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.2502, allocations: 118.5 kB / 0.7915 GB, free: 5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.2504, allocations: 72.81 kB / 0.7916 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/0.2517, allocations: 0.9568 MB / 0.7925 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.2517, allocations: 42.5 kB / 0.7926 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 2.404e-06/0.2518, allocations: 0 / 0.7926 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006276/0.2524, allocations: 213.3 kB / 0.7928 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.2524, allocations: 51.41 kB / 0.7928 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.2526, allocations: 169.3 kB / 0.793 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.2526, allocations: 29.7 kB / 0.793 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.2527, allocations: 104.4 kB / 0.7931 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.2527, allocations: 39.47 kB / 0.7931 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.149e-05/0.2528, allocations: 49.69 kB / 0.7932 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.2529, allocations: 326.8 kB / 0.7935 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2531, allocations: 75.94 kB / 0.7936 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.2534, allocations: 106.9 kB / 0.7937 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.2538, allocations: 175.2 kB / 0.7938 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2538, allocations: 0 / 0.7938 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005413/0.2543, allocations: 251.4 kB / 0.7941 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2544, allocations: 8 kB / 0.7941 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2544, allocations: 0 / 0.7941 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2544, allocations: 3.938 kB / 0.7941 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.2547, allocations: 63.88 kB / 0.7942 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2547, allocations: 0 / 0.7942 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.2548, allocations: 35.77 kB / 0.7942 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.2549, allocations: 8.094 kB / 0.7942 GB, free: 2.031 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 8.677e-05/0.255, allocations: 121.8 kB / 0.7943 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.255, allocations: 15.75 kB / 0.7943 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000468/0.2555, allocations: 183.2 kB / 0.7945 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2555, allocations: 0 / 0.7945 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2555, allocations: 4 kB / 0.7945 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2555, allocations: 3.984 kB / 0.7945 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.2557, allocations: 221.4 kB / 0.7947 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2557, allocations: 0 / 0.7947 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.2559, allocations: 31.92 kB / 0.7948 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2559, allocations: 0 / 0.7948 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.2559, allocations: 7.984 kB / 0.7948 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2559, allocations: 7.938 kB / 0.7948 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2559, allocations: 3.938 kB / 0.7948 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.2564, allocations: 247.4 kB / 0.795 GB, free: 1.117 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.2564, allocations: 100.8 kB / 0.7951 GB, free: 1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.2565, allocations: 0 / 0.7951 GB, free: 1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.2566, allocations: 15.98 kB / 0.7951 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.2566, allocations: 7.984 kB / 0.7951 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.2567, allocations: 8 kB / 0.7951 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.197e-05/0.2567, allocations: 118.1 kB / 0.7952 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2567, allocations: 0 / 0.7952 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003108/0.2571, allocations: 64.3 kB / 0.7953 GB, free: 0.793 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.0008794/0.2579, allocations: 0.8474 MB / 0.7961 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004838/0.2584, allocations: 179.6 kB / 0.7963 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2585, allocations: 0 / 0.7963 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.2586, allocations: 67.89 kB / 0.7964 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.259, allocations: 22.69 kB / 0.7964 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.2614, allocations: 1.961 MB / 0.7983 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.2617, allocations: 0.7045 MB / 0.799 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.728e-05/0.2618, allocations: 20.56 kB / 0.799 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.267e-05/0.2619, allocations: 39.42 kB / 0.7991 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of SimCode: time 5.51e-07/0.2619, allocations: 4 kB / 0.7991 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.2832, allocations: 4.249 MB / 0.8032 GB, free: 8.723 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.371/7.654, allocations: 11.88 kB / 0.8032 GB, free: 8.711 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)