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.001254/0.001254, allocations: 108 kB / 15.61 MB, free: 152 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.001021/0.001021, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.224/1.224, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.537/1.537, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001507/0.001507, allocations: 70.08 kB / 0.6716 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1911, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006102/0.1973, allocations: 4.591 MB / 0.788 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.1983, allocations: 0.8147 MB / 0.7888 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.508e-05/0.1984, allocations: 0 / 0.7888 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.1986, allocations: 27.77 kB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.511e-05/0.1987, allocations: 31.7 kB / 0.7888 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.1992, allocations: 179.3 kB / 0.789 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.1994, allocations: 171.4 kB / 0.7891 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.196e-05/0.1995, allocations: 9.125 kB / 0.7892 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.1997, allocations: 87.69 kB / 0.7892 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1998, allocations: 79.73 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.1999, allocations: 12 kB / 0.7893 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003398/0.2002, allocations: 159.7 kB / 0.7895 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.2002, allocations: 31.91 kB / 0.7895 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.869e-05/0.2003, allocations: 71.64 kB / 0.7896 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.2007, allocations: 239.6 kB / 0.7898 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2007, allocations: 0 / 0.7898 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2007, allocations: 0 / 0.7898 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.2007, allocations: 0 / 0.7898 GB, free: 6.883 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.0008318/0.2015, allocations: 481.3 kB / 0.7903 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2016, allocations: 12.03 kB / 0.7903 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.2016, allocations: 34.75 kB / 0.7903 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.289e-05/0.2017, allocations: 16.75 kB / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.2018, allocations: 187 kB / 0.7905 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.2018, allocations: 16.12 kB / 0.7905 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.2019, allocations: 12 kB / 0.7905 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.2022, allocations: 117.5 kB / 0.7906 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2022, allocations: 0 / 0.7906 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.2022, allocations: 4 kB / 0.7906 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2022, allocations: 4 kB / 0.7906 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004062/0.2026, allocations: 143.9 kB / 0.7908 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008948/0.2035, allocations: 468.4 kB / 0.7912 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.2038, allocations: 126.5 kB / 0.7914 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.204, allocations: 72.75 kB / 0.7914 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001304/0.2053, allocations: 0.9646 MB / 0.7924 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.2054, allocations: 38.48 kB / 0.7924 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.2054, allocations: 0 / 0.7924 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.000656/0.206, allocations: 213.3 kB / 0.7926 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.2061, allocations: 55.41 kB / 0.7927 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.2062, allocations: 169.5 kB / 0.7928 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.2062, allocations: 33.7 kB / 0.7929 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.2063, allocations: 104.4 kB / 0.793 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.2063, allocations: 39.44 kB / 0.793 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.2064, allocations: 49.7 kB / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.2065, allocations: 318.8 kB / 0.7933 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.2068, allocations: 79.94 kB / 0.7934 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.207, allocations: 111.3 kB / 0.7935 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000418/0.2074, allocations: 171.2 kB / 0.7937 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2074, allocations: 0 / 0.7937 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005643/0.208, allocations: 251.7 kB / 0.7939 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.208, allocations: 10.59 kB / 0.7939 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.2081, allocations: 0 / 0.7939 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2081, allocations: 4 kB / 0.7939 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.2083, allocations: 55.95 kB / 0.794 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2084, allocations: 4 kB / 0.794 GB, free: 2.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.2085, allocations: 27.77 kB / 0.794 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.2086, allocations: 12 kB / 0.794 GB, free: 2.172 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.814e-05/0.2086, allocations: 125.9 kB / 0.7942 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.2087, allocations: 15.75 kB / 0.7942 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004911/0.2092, allocations: 182.8 kB / 0.7943 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.2092, allocations: 0 / 0.7943 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2092, allocations: 4 kB / 0.7943 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2092, allocations: 7.984 kB / 0.7944 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.2094, allocations: 213.5 kB / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2095, allocations: 0 / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.2096, allocations: 35.91 kB / 0.7946 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2096, allocations: 0 / 0.7946 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.2096, allocations: 4 kB / 0.7946 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2097, allocations: 0 / 0.7946 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2097, allocations: 0 / 0.7946 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004445/0.2101, allocations: 255.2 kB / 0.7948 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/0.2102, allocations: 108.8 kB / 0.7949 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.2102, allocations: 0 / 0.7949 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.2104, allocations: 15.97 kB / 0.795 GB, free: 1.121 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.2104, allocations: 8 kB / 0.795 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.2104, allocations: 7.984 kB / 0.795 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.094e-05/0.2105, allocations: 117.8 kB / 0.7951 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2105, allocations: 4 kB / 0.7951 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003107/0.2108, allocations: 56.31 kB / 0.7951 GB, free: 0.9336 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.0008534/0.2117, allocations: 0.8488 MB / 0.796 GB, free: 56 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005083/0.2122, allocations: 180.4 kB / 0.7961 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2122, allocations: 0 / 0.7961 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.2124, allocations: 67.89 kB / 0.7962 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.2128, allocations: 28.17 kB / 0.7962 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.2153, allocations: 1.954 MB / 0.7981 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.2155, allocations: 0.7045 MB / 0.7988 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.332e-05/0.2156, allocations: 24.27 kB / 0.7989 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.242e-05/0.2157, allocations: 35.42 kB / 0.7989 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2157, allocations: 0 / 0.7989 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.02/2.236, allocations: 4.224 MB / 0.803 GB, free: 8.871 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/16.78, allocations: 18.84 kB / 0.803 GB, free: 8.855 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)