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.007098/0.007098, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001619/0.001619, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002137/0.002137, allocations: 271.2 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9302/0.9302, allocations: 169.2 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 92.33 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.169, allocations: 86.98 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006478/0.1755, allocations: 4.544 MB / 0.7703 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1767, allocations: 0.8147 MB / 0.7711 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.049e-05/0.1768, allocations: 0 / 0.7711 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.1769, allocations: 31.77 kB / 0.7712 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.31e-05/0.1771, allocations: 31.7 kB / 0.7712 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.1776, allocations: 175.3 kB / 0.7714 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.1778, allocations: 171.4 kB / 0.7715 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1779, allocations: 21.39 kB / 0.7716 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.1781, allocations: 75.75 kB / 0.7716 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.1783, allocations: 83.67 kB / 0.7717 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.1783, allocations: 16 kB / 0.7717 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.1786, allocations: 151.8 kB / 0.7719 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.425e-05/0.1787, allocations: 31.91 kB / 0.7719 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.109e-05/0.1788, allocations: 63.72 kB / 0.772 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.1791, allocations: 243.2 kB / 0.7722 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1792, allocations: 0 / 0.7722 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.944e-06/0.1792, allocations: 0 / 0.7722 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.1792, allocations: 0 / 0.7722 GB, free: 2.457 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.0008691/0.1801, allocations: 490.8 kB / 0.7727 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.1801, allocations: 8.031 kB / 0.7727 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.418e-05/0.1801, allocations: 42.73 kB / 0.7727 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.1802, allocations: 16.75 kB / 0.7727 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.1804, allocations: 177.4 kB / 0.7729 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.1804, allocations: 12.38 kB / 0.7729 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.1804, allocations: 16.31 kB / 0.7729 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.1807, allocations: 121.5 kB / 0.773 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1807, allocations: 0 / 0.773 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1808, allocations: 4 kB / 0.773 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.1808, allocations: 4 kB / 0.773 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000374/0.1812, allocations: 143.9 kB / 0.7732 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009486/0.1821, allocations: 460.4 kB / 0.7736 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.1824, allocations: 130.4 kB / 0.7737 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1826, allocations: 72.81 kB / 0.7738 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3063/0.4889, allocations: 0.9504 MB / 0.7747 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.489, allocations: 36.14 kB / 0.7748 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.489, allocations: 0 / 0.7748 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12): time 0.0006803/0.4897, allocations: 214.8 kB / 0.775 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.4897, allocations: 56.91 kB / 0.775 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.4898, allocations: 156.5 kB / 0.7752 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.4899, allocations: 31.61 kB / 0.7752 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.4899, allocations: 109.5 kB / 0.7753 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.49, allocations: 40.22 kB / 0.7754 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.783e-05/0.49, allocations: 52.31 kB / 0.7754 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/0.4901, allocations: 328.7 kB / 0.7757 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.4903, allocations: 72.8 kB / 0.7758 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.4906, allocations: 112.6 kB / 0.7759 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.491, allocations: 180 kB / 0.7761 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.491, allocations: 1.281 kB / 0.7761 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005371/0.4915, allocations: 242.1 kB / 0.7763 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4916, allocations: 6.062 kB / 0.7763 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.4916, allocations: 1 kB / 0.7763 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.4916, allocations: 2.875 kB / 0.7763 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.4919, allocations: 55.02 kB / 0.7764 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.4919, allocations: 2.891 kB / 0.7764 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.492, allocations: 40.19 kB / 0.7764 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.4921, allocations: 11.03 kB / 0.7764 GB, free: 14.27 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.925e-05/0.4922, allocations: 123.4 kB / 0.7765 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.4922, allocations: 12.75 kB / 0.7765 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004605/0.4927, allocations: 181.2 kB / 0.7767 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.4927, allocations: 1.25 kB / 0.7767 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4927, allocations: 1.547 kB / 0.7767 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4927, allocations: 4.641 kB / 0.7767 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.4929, allocations: 216 kB / 0.7769 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4929, allocations: 0 / 0.7769 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.4931, allocations: 34.41 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.4931, allocations: 0.9375 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.4931, allocations: 3.344 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.4931, allocations: 4.688 kB / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.4931, allocations: 0 / 0.777 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000392/0.4935, allocations: 254.7 kB / 0.7772 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.4936, allocations: 102.7 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.4936, allocations: 11.53 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.4937, allocations: 11.84 kB / 0.7773 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.4938, allocations: 17.88 kB / 0.7774 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.4938, allocations: 1.531 kB / 0.7774 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.942e-05/0.4939, allocations: 123.2 kB / 0.7775 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4939, allocations: 0 / 0.7775 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003424/0.4942, allocations: 59.03 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.0007253/0.495, allocations: 0.8496 MB / 0.7784 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004846/0.4954, allocations: 170.5 kB / 0.7785 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4955, allocations: 0 / 0.7785 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.4956, allocations: 74.84 kB / 0.7786 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.496, allocations: 22.41 kB / 0.7786 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.4982, allocations: 1.952 MB / 0.7805 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.4984, allocations: 0.7036 MB / 0.7812 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.83e-05/0.4985, allocations: 24.88 kB / 0.7812 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.411e-05/0.4986, allocations: 39.58 kB / 0.7813 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of SimCode: time 4.5e-07/0.4986, allocations: 0 / 0.7813 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.5197, allocations: 4.361 MB / 0.7855 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/7.965, allocations: 14.06 kB / 0.7855 GB, free: 10.21 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)