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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8403/0.8403, allocations: 143.3 MB / 158.3 MB, free: 5.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 183 kB / 191.5 MB, free: 5.773 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 223.2 MB / 447.7 MB, free: 4.875 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009374/0.0009374, allocations: 100.2 kB / 0.5187 GB, free: 1.234 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001889/0.001889, allocations: 275.7 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004496/0.0004496, allocations: 13.66 kB / 0.6929 GB, free: 59.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1748, allocations: 82.79 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7818/0.9566, allocations: 332.8 MB / 1.099 GB, free: 4.969 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003726/0.957, allocations: 92.38 kB / 1.099 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.03282/0.9899, allocations: 14.23 MB / 1.113 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.765e-06/0.9899, allocations: 0 / 1.113 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.378e-06/0.99, allocations: 4 kB / 1.113 GB, free: 9.516 MB / 0.6823 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.00084/0.9908, allocations: 487.6 kB / 1.113 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.9909, allocations: 8.562 kB / 1.113 GB, free: 9 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.943e-05/0.9909, allocations: 41.12 kB / 1.113 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.991, allocations: 15.84 kB / 1.113 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.9911, allocations: 179.5 kB / 1.113 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.9911, allocations: 7.25 kB / 1.113 GB, free: 8.723 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.9912, allocations: 15.69 kB / 1.113 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.9915, allocations: 122.9 kB / 1.114 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.9915, allocations: 0 / 1.114 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.9915, allocations: 3.5 kB / 1.114 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.9916, allocations: 7.984 kB / 1.114 GB, free: 8.602 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/0.992, allocations: 162.3 kB / 1.114 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009786/0.993, allocations: 480.6 kB / 1.114 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.9933, allocations: 133 kB / 1.114 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001387/0.9947, allocations: 0.9587 MB / 1.115 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.9947, allocations: 38 kB / 1.115 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.9947, allocations: 4 kB / 1.115 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12): time 0.0006904/0.9954, allocations: 243 kB / 1.116 GB, free: 6.617 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.9955, allocations: 51.41 kB / 1.116 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.9957, allocations: 148.6 kB / 1.116 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.9957, allocations: 28.64 kB / 1.116 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.028e-05/0.9958, allocations: 103 kB / 1.116 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.9959, allocations: 46.52 kB / 1.116 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.9959, allocations: 3.438 kB / 1.116 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.996, allocations: 326 kB / 1.116 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.9963, allocations: 90 kB / 1.116 GB, free: 5.863 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.9965, allocations: 122.3 kB / 1.116 GB, free: 5.754 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.9968, allocations: 92.38 kB / 1.116 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.9968, allocations: 0 / 1.116 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005685/0.9973, allocations: 268.8 kB / 1.117 GB, free: 5.473 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.9974, allocations: 8 kB / 1.117 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.9974, allocations: 96 / 1.117 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.9974, allocations: 15.95 kB / 1.117 GB, free: 5.449 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.9977, allocations: 55.91 kB / 1.117 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.9977, allocations: 0 / 1.117 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.9979, allocations: 39.34 kB / 1.117 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.9979, allocations: 11.5 kB / 1.117 GB, free: 5.352 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.9981, allocations: 124.7 kB / 1.117 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.9981, allocations: 11.91 kB / 1.117 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.9986, allocations: 189.5 kB / 1.117 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.9986, allocations: 0 / 1.117 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.9986, allocations: 3.953 kB / 1.117 GB, free: 5.059 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.9986, allocations: 7.875 kB / 1.117 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.9989, allocations: 218.5 kB / 1.117 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.9989, allocations: 4 kB / 1.117 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.999, allocations: 39.59 kB / 1.117 GB, free: 4.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.9991, allocations: 0 / 1.117 GB, free: 4.77 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.9991, allocations: 4 kB / 1.117 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9991, allocations: 0 / 1.117 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.9991, allocations: 0 / 1.117 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.9996, allocations: 279.9 kB / 1.118 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/0.9997, allocations: 88.92 kB / 1.118 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.9997, allocations: 11.5 kB / 1.118 GB, free: 4.391 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.9998, allocations: 15.98 kB / 1.118 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.9999, allocations: 11.42 kB / 1.118 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.9999, allocations: 4 kB / 1.118 GB, free: 4.363 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.827e-05/1, allocations: 129.1 kB / 1.118 GB, free: 4.25 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/1, allocations: 0 / 1.118 GB, free: 4.25 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003675/1, allocations: 71.98 kB / 1.118 GB, free: 4.188 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009945/1.001, allocations: 0.8826 MB / 1.119 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004929/1.002, allocations: 193.2 kB / 1.119 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.002, allocations: 4 kB / 1.119 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001939/1.002, allocations: 79.75 kB / 1.119 GB, free: 3.082 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/1.002, allocations: 20.38 kB / 1.119 GB, free: 3.07 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/1.003, allocations: 1.053 MB / 1.12 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/1.004, allocations: 0.7087 MB / 1.121 GB, free: 1.254 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001083/1.004, allocations: 21.45 kB / 1.121 GB, free: 1.234 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.985e-05/1.004, allocations: 34.42 kB / 1.121 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/1.004, allocations: 0 / 1.121 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/1.02, allocations: 4.241 MB / 1.125 GB, free: 13.18 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/1.02, allocations: 206.9 kB / 1.125 GB, free: 12.94 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.75, allocations: 0 / 1.125 GB, free: 12.94 MB / 0.698 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/linux/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)