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.001539/0.001539, allocations: 112.5 kB / 15.73 MB, free: 76 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.001198/0.001198, allocations: 190.7 kB / 16.67 MB, free: 6.539 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002449/0.002449, allocations: 283 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.971/0.971, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002612/0.002612, allocations: 100.4 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1552, allocations: 86.99 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006159/0.1614, allocations: 4.541 MB / 0.7703 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1625, allocations: 0.8146 MB / 0.7711 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.284e-05/0.1626, allocations: 0 / 0.7711 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.1628, allocations: 31.77 kB / 0.7712 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.387e-05/0.1629, allocations: 35.64 kB / 0.7712 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.1634, allocations: 171.4 kB / 0.7714 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.1636, allocations: 171.4 kB / 0.7715 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.204e-05/0.1637, allocations: 17.11 kB / 0.7715 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.1639, allocations: 75.75 kB / 0.7716 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.164, allocations: 83.66 kB / 0.7717 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.164, allocations: 20 kB / 0.7717 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003268/0.1644, allocations: 151.8 kB / 0.7719 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.61e-05/0.1644, allocations: 35.89 kB / 0.7719 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.051e-05/0.1645, allocations: 59.73 kB / 0.772 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1648, allocations: 239.5 kB / 0.7722 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1648, allocations: 4 kB / 0.7722 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1648, allocations: 0 / 0.7722 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.1649, allocations: 0 / 0.7722 GB, free: 2.465 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.000867/0.1657, allocations: 494.4 kB / 0.7727 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.1658, allocations: 8.031 kB / 0.7727 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.458e-05/0.1658, allocations: 42.73 kB / 0.7727 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.1659, allocations: 12.89 kB / 0.7727 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.166, allocations: 186.2 kB / 0.7729 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.166, allocations: 4.375 kB / 0.7729 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.1661, allocations: 12.38 kB / 0.7729 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.1664, allocations: 125.5 kB / 0.773 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1664, allocations: 0 / 0.773 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1664, allocations: 4 kB / 0.773 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.1664, allocations: 4 kB / 0.773 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.1668, allocations: 143.8 kB / 0.7732 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009549/0.1678, allocations: 468.5 kB / 0.7736 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.1681, allocations: 122.5 kB / 0.7737 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.1683, allocations: 76.75 kB / 0.7738 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2757/0.444, allocations: 0.9551 MB / 0.7747 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.4441, allocations: 37.27 kB / 0.7748 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 2.014e-06/0.4441, allocations: 2.938 kB / 0.7748 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12): time 0.0006542/0.4447, allocations: 212.8 kB / 0.775 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.4448, allocations: 53.69 kB / 0.775 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.4449, allocations: 158.9 kB / 0.7752 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.4449, allocations: 29.02 kB / 0.7752 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.445, allocations: 116.8 kB / 0.7753 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.445, allocations: 41.7 kB / 0.7754 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.4451, allocations: 46.86 kB / 0.7754 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.52e-05/0.4452, allocations: 330.6 kB / 0.7757 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.4454, allocations: 74.69 kB / 0.7758 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.4456, allocations: 110.8 kB / 0.7759 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.446, allocations: 173.7 kB / 0.7761 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.446, allocations: 0 / 0.7761 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004982/0.4465, allocations: 249.2 kB / 0.7763 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.4465, allocations: 7.688 kB / 0.7763 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.4465, allocations: 2.344 kB / 0.7763 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.4466, allocations: 2.312 kB / 0.7763 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.4468, allocations: 57.89 kB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.4468, allocations: 2.281 kB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.447, allocations: 37.61 kB / 0.7764 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.447, allocations: 9.016 kB / 0.7764 GB, free: 14.28 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 6.188e-05/0.4471, allocations: 125.7 kB / 0.7765 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.4471, allocations: 13.41 kB / 0.7766 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004262/0.4476, allocations: 180.7 kB / 0.7767 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4476, allocations: 2.25 kB / 0.7767 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4476, allocations: 1.375 kB / 0.7767 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4476, allocations: 4.688 kB / 0.7767 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.4478, allocations: 215.7 kB / 0.7769 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4478, allocations: 6.594 kB / 0.7769 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.448, allocations: 31.5 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.448, allocations: 0.9062 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.448, allocations: 5 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.448, allocations: 0.875 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.448, allocations: 0 / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.4484, allocations: 263.2 kB / 0.7772 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.564e-05/0.4484, allocations: 99.73 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.4485, allocations: 3.969 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.4486, allocations: 15.69 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.4487, allocations: 15.25 kB / 0.7774 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.4487, allocations: 3.609 kB / 0.7774 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.826e-05/0.4487, allocations: 121.9 kB / 0.7775 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4488, allocations: 0 / 0.7775 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004098/0.4492, allocations: 61.83 kB / 0.7775 GB, free: 13.6 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.0006634/0.4498, allocations: 0.8464 MB / 0.7784 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004591/0.4503, allocations: 169.6 kB / 0.7785 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4503, allocations: 3.812 kB / 0.7785 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.4505, allocations: 74.11 kB / 0.7786 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.4509, allocations: 27.09 kB / 0.7786 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.453, allocations: 1.951 MB / 0.7805 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.4531, allocations: 0.7034 MB / 0.7812 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.161e-05/0.4532, allocations: 21.5 kB / 0.7812 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.4533, allocations: 39.44 kB / 0.7813 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.4533, allocations: 0 / 0.7813 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.4898, allocations: 4.301 MB / 0.7855 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.918, allocations: 8.031 kB / 0.7855 GB, free: 10.22 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)