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.004521/0.004521, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001288/0.001288, allocations: 193.7 kB / 16.67 MB, free: 5.934 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 293.5 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9456/0.9456, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 99.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3975, allocations: 86.97 MB / 0.7659 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005862/0.4034, allocations: 4.535 MB / 0.7703 GB, free: 15.27 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.4044, allocations: 0.8303 MB / 0.7712 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.358e-05/0.4045, allocations: 4 kB / 0.7712 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.4047, allocations: 27.77 kB / 0.7712 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.545e-05/0.4047, allocations: 31.7 kB / 0.7712 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.4052, allocations: 171.3 kB / 0.7714 GB, free: 14.21 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.4054, allocations: 187.3 kB / 0.7716 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 7.83e-05/0.4055, allocations: 9.125 kB / 0.7716 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.4057, allocations: 79.75 kB / 0.7716 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.4058, allocations: 75.73 kB / 0.7717 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/0.4058, allocations: 16 kB / 0.7717 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.4062, allocations: 159.7 kB / 0.7719 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.336e-05/0.4062, allocations: 31.84 kB / 0.7719 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.552e-05/0.4063, allocations: 67.7 kB / 0.772 GB, free: 13.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.4066, allocations: 240.3 kB / 0.7722 GB, free: 13.37 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4066, allocations: 0 / 0.7722 GB, free: 13.37 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4067, allocations: 4 kB / 0.7722 GB, free: 13.36 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.4067, allocations: 0 / 0.7722 GB, free: 13.36 MB / 0.545 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.0008436/0.4075, allocations: 486.5 kB / 0.7727 GB, free: 12.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.4076, allocations: 8.031 kB / 0.7727 GB, free: 12.83 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.314e-05/0.4076, allocations: 42.75 kB / 0.7727 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.4077, allocations: 12.89 kB / 0.7727 GB, free: 12.77 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.4078, allocations: 187.2 kB / 0.7729 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.4078, allocations: 8.375 kB / 0.7729 GB, free: 12.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.4079, allocations: 12.38 kB / 0.7729 GB, free: 12.53 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.4082, allocations: 128.3 kB / 0.7731 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.4082, allocations: 0 / 0.7731 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.4082, allocations: 0 / 0.7731 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4082, allocations: 4 kB / 0.7731 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004086/0.4086, allocations: 143.9 kB / 0.7732 GB, free: 12.26 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009359/0.4096, allocations: 468.4 kB / 0.7736 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.4099, allocations: 126.5 kB / 0.7738 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.4101, allocations: 68.81 kB / 0.7738 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001353/0.4114, allocations: 0.9647 MB / 0.7748 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.4115, allocations: 34.56 kB / 0.7748 GB, free: 10.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.4115, allocations: 4 kB / 0.7748 GB, free: 10.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=12): time 0.0006526/0.4121, allocations: 213.3 kB / 0.775 GB, free: 10.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.4122, allocations: 51.41 kB / 0.7751 GB, free: 10.12 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.4124, allocations: 175 kB / 0.7752 GB, free: 9.941 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.4124, allocations: 29.7 kB / 0.7753 GB, free: 9.906 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.4125, allocations: 108.5 kB / 0.7754 GB, free: 9.797 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.573e-05/0.4125, allocations: 51.55 kB / 0.7754 GB, free: 9.746 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.4126, allocations: 49.66 kB / 0.7755 GB, free: 9.691 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4127, allocations: 322.8 kB / 0.7758 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.413, allocations: 75.94 kB / 0.7758 GB, free: 9.293 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.4132, allocations: 113.8 kB / 0.7759 GB, free: 9.172 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.4136, allocations: 171.3 kB / 0.7761 GB, free: 8.992 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4137, allocations: 0 / 0.7761 GB, free: 8.992 MB / 0.545 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005431/0.4142, allocations: 239.3 kB / 0.7763 GB, free: 8.754 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.4142, allocations: 8 kB / 0.7763 GB, free: 8.746 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4142, allocations: 3.938 kB / 0.7763 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.4143, allocations: 0 / 0.7763 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.4145, allocations: 60.05 kB / 0.7764 GB, free: 8.684 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.4145, allocations: 3.938 kB / 0.7764 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.4147, allocations: 35.77 kB / 0.7764 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.4147, allocations: 8 kB / 0.7764 GB, free: 8.637 MB / 0.545 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.56e-05/0.4148, allocations: 121.8 kB / 0.7766 GB, free: 8.508 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.4149, allocations: 19.88 kB / 0.7766 GB, free: 8.488 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004695/0.4153, allocations: 179.3 kB / 0.7768 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.4153, allocations: 0 / 0.7768 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4154, allocations: 3.984 kB / 0.7768 GB, free: 8.301 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4154, allocations: 0 / 0.7768 GB, free: 8.301 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.4156, allocations: 209.5 kB / 0.777 GB, free: 8.047 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4156, allocations: 0 / 0.777 GB, free: 8.047 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.4158, allocations: 35.97 kB / 0.777 GB, free: 8.012 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4158, allocations: 4 kB / 0.777 GB, free: 8.008 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.4158, allocations: 7.938 kB / 0.777 GB, free: 8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4158, allocations: 4 kB / 0.777 GB, free: 7.996 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.4158, allocations: 0 / 0.777 GB, free: 7.996 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.4163, allocations: 259.3 kB / 0.7773 GB, free: 7.727 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.919e-05/0.4164, allocations: 101 kB / 0.7773 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.4164, allocations: 7.938 kB / 0.7774 GB, free: 7.602 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.4165, allocations: 15.97 kB / 0.7774 GB, free: 7.586 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.4166, allocations: 15.92 kB / 0.7774 GB, free: 7.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-06/0.4166, allocations: 4 kB / 0.7774 GB, free: 7.566 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.946e-05/0.4167, allocations: 116 kB / 0.7775 GB, free: 7.453 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4167, allocations: 0 / 0.7775 GB, free: 7.453 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002991/0.417, allocations: 59.81 kB / 0.7776 GB, free: 7.395 MB / 0.545 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.0009174/0.4179, allocations: 0.8565 MB / 0.7784 GB, free: 6.508 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004922/0.4184, allocations: 167.8 kB / 0.7786 GB, free: 6.344 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4184, allocations: 8.125 kB / 0.7786 GB, free: 6.336 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.4186, allocations: 67.89 kB / 0.7786 GB, free: 6.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.419, allocations: 22.22 kB / 0.7786 GB, free: 6.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.4215, allocations: 1.955 MB / 0.7806 GB, free: 4.207 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.4219, allocations: 0.7006 MB / 0.7812 GB, free: 3.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.416e-05/0.422, allocations: 25.39 kB / 0.7813 GB, free: 3.453 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.4221, allocations: 35.42 kB / 0.7813 GB, free: 3.418 MB / 0.545 GB Notification: Performance of SimCode: time 3.6e-07/0.4221, allocations: 0 / 0.7813 GB, free: 3.418 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02505/0.4471, allocations: 4.294 MB / 0.7855 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.36/7.807, allocations: 3.938 kB / 0.7855 GB, free: 15.29 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)