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.005014/0.005014, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.001449/0.001449, allocations: 195.9 kB / 16.68 MB, free: 5.977 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002373/0.002373, allocations: 278.9 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.001/1.001, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002531/0.002531, allocations: 100.5 kB / 0.6943 GB, free: 3.578 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4337, allocations: 89.14 MB / 0.7813 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006169/0.4399, allocations: 4.549 MB / 0.7858 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.441, allocations: 0.8212 MB / 0.7866 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.637e-05/0.4411, allocations: 1.156 kB / 0.7866 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.4413, allocations: 29.17 kB / 0.7866 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.261e-05/0.4413, allocations: 35.75 kB / 0.7866 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005109/0.4419, allocations: 170.1 kB / 0.7868 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.4421, allocations: 172.9 kB / 0.787 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.35e-05/0.4422, allocations: 22.86 kB / 0.787 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.4423, allocations: 81.69 kB / 0.7871 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.4425, allocations: 74.47 kB / 0.7871 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.4425, allocations: 12.94 kB / 0.7872 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003248/0.4428, allocations: 154.4 kB / 0.7873 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.6e-05/0.4429, allocations: 31.67 kB / 0.7873 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.734e-05/0.4429, allocations: 69.03 kB / 0.7874 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.4433, allocations: 247 kB / 0.7876 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4433, allocations: 1.406 kB / 0.7876 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4434, allocations: 0 / 0.7876 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.4434, allocations: 3.938 kB / 0.7876 GB, free: 9.754 MB / 0.5606 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.0008456/0.4442, allocations: 484 kB / 0.7881 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.4443, allocations: 9.25 kB / 0.7881 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.37e-05/0.4443, allocations: 39.62 kB / 0.7881 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.4444, allocations: 11.45 kB / 0.7882 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.4445, allocations: 184.7 kB / 0.7883 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4445, allocations: 12.84 kB / 0.7883 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.4446, allocations: 11.97 kB / 0.7884 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.4449, allocations: 123.7 kB / 0.7885 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.4449, allocations: 1 kB / 0.7885 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.4449, allocations: 4 kB / 0.7885 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.4449, allocations: 2.703 kB / 0.7885 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.4453, allocations: 138.8 kB / 0.7886 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009452/0.4463, allocations: 465.6 kB / 0.7891 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.4466, allocations: 134.5 kB / 0.7892 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.4468, allocations: 71.94 kB / 0.7893 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001363/0.4482, allocations: 0.9578 MB / 0.7902 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.4483, allocations: 35.72 kB / 0.7902 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.4483, allocations: 0 / 0.7902 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12): time 0.0006735/0.4489, allocations: 222 kB / 0.7904 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.449, allocations: 53.3 kB / 0.7905 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.4492, allocations: 167.6 kB / 0.7907 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.4492, allocations: 26.33 kB / 0.7907 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.4493, allocations: 108.5 kB / 0.7908 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.4493, allocations: 44.53 kB / 0.7908 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.427e-05/0.4494, allocations: 52.97 kB / 0.7909 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4496, allocations: 322.2 kB / 0.7912 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.4498, allocations: 74.58 kB / 0.7913 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.4501, allocations: 111.7 kB / 0.7914 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/0.4506, allocations: 170.5 kB / 0.7915 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4506, allocations: 4 kB / 0.7915 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006242/0.4513, allocations: 245 kB / 0.7918 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.4513, allocations: 6.516 kB / 0.7918 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4513, allocations: 9.203 kB / 0.7918 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4513, allocations: 6.156 kB / 0.7918 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.4516, allocations: 50.22 kB / 0.7918 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.4516, allocations: 7.094 kB / 0.7918 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.4517, allocations: 35.77 kB / 0.7919 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.4518, allocations: 7.328 kB / 0.7919 GB, free: 6.477 MB / 0.5606 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 0.0001088/0.4519, allocations: 128.3 kB / 0.792 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.4519, allocations: 16.62 kB / 0.792 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004938/0.4524, allocations: 188.2 kB / 0.7922 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4524, allocations: 2.5 kB / 0.7922 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.4525, allocations: 0 / 0.7922 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4525, allocations: 0.75 kB / 0.7922 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/0.4527, allocations: 214.3 kB / 0.7924 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4527, allocations: 0.8438 kB / 0.7924 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.4529, allocations: 28.91 kB / 0.7924 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.4529, allocations: 1.25 kB / 0.7924 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.4529, allocations: 9.672 kB / 0.7924 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.4529, allocations: 4 kB / 0.7924 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4529, allocations: 1.094 kB / 0.7924 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.4534, allocations: 257.6 kB / 0.7927 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.4535, allocations: 98.64 kB / 0.7928 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.4535, allocations: 12.45 kB / 0.7928 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.4536, allocations: 12.38 kB / 0.7928 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.4537, allocations: 8.281 kB / 0.7928 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.4537, allocations: 6.125 kB / 0.7928 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.689e-05/0.4538, allocations: 116.2 kB / 0.7929 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4538, allocations: 1.219 kB / 0.7929 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003268/0.4541, allocations: 61.7 kB / 0.793 GB, free: 5.633 MB / 0.5606 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.0009366/0.4551, allocations: 0.851 MB / 0.7938 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005016/0.4556, allocations: 171.2 kB / 0.794 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.4556, allocations: 0 / 0.794 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.4558, allocations: 74.64 kB / 0.7941 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.4561, allocations: 29.02 kB / 0.7941 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/0.4588, allocations: 1.951 MB / 0.796 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.4591, allocations: 0.7036 MB / 0.7967 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.606e-05/0.4592, allocations: 20.94 kB / 0.7967 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.92e-05/0.4593, allocations: 38.84 kB / 0.7967 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of SimCode: time 3.5e-07/0.4593, allocations: 0 / 0.7967 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.4853, allocations: 4.296 MB / 0.8009 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.118, allocations: 16.45 kB / 0.8009 GB, free: 0.8359 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)