Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.8759/0.8759, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001554/0.001554, allocations: 185 kB / 191.5 MB, free: 5.762 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.656/1.656, allocations: 223.2 MB / 447.7 MB, free: 4.809 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.001026/0.001026, allocations: 88.31 kB / 0.5187 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001844/0.001844, allocations: 270.4 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004423, allocations: 13.62 kB / 0.6929 GB, free: 59.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.19, allocations: 82.79 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8363/1.026, allocations: 380.4 MB / 1.145 GB, free: 6.473 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/1.027, allocations: 100.2 kB / 1.145 GB, free: 6.418 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.666/2.693, allocations: 420.3 MB / 1.556 GB, free: 177.6 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.114e-06/2.693, allocations: 0 / 1.556 GB, free: 177.6 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001743/2.693, allocations: 50.3 kB / 1.556 GB, free: 177.6 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005324/2.699, allocations: 2.223 MB / 1.558 GB, free: 176.1 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/2.699, allocations: 10.75 kB / 1.558 GB, free: 176.1 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003562/2.699, allocations: 220.2 kB / 1.558 GB, free: 175.9 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007201/2.7, allocations: 223.3 kB / 1.558 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004002/2.704, allocations: 2.095 MB / 1.56 GB, free: 174.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.702e-05/2.704, allocations: 109.1 kB / 1.561 GB, free: 174.4 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002543/2.704, allocations: 150.3 kB / 1.561 GB, free: 174.4 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/2.707, allocations: 1.89 MB / 1.563 GB, free: 173.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/2.707, allocations: 3.906 kB / 1.563 GB, free: 173.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/2.707, allocations: 58.72 kB / 1.563 GB, free: 173.2 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.073e-05/2.707, allocations: 37.72 kB / 1.563 GB, free: 173.2 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/2.709, allocations: 1.692 MB / 1.564 GB, free: 171.8 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/2.72, allocations: 7.528 MB / 1.572 GB, free: 164.1 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/2.721, allocations: 1.336 MB / 1.573 GB, free: 162.8 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005534/2.727, allocations: 3.753 MB / 1.577 GB, free: 158.7 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/2.727, allocations: 39.56 kB / 1.577 GB, free: 158.7 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=86): time 2.846e-06/2.727, allocations: 0 / 1.577 GB, free: 158.7 MB / 0.7136 GB Notification: Performance of matching and sorting (n=86): time 0.002088/2.729, allocations: 1.455 MB / 1.578 GB, free: 157.2 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/2.729, allocations: 71.58 kB / 1.578 GB, free: 157.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/2.731, allocations: 1.504 MB / 1.58 GB, free: 155.6 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.535e-05/2.731, allocations: 49.7 kB / 1.58 GB, free: 155.6 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/2.731, allocations: 0.7611 MB / 1.58 GB, free: 154.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/2.731, allocations: 302.9 kB / 1.581 GB, free: 154.5 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/2.732, allocations: 32 kB / 1.581 GB, free: 154.5 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001102/2.732, allocations: 365.9 kB / 1.581 GB, free: 154.1 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008095/2.732, allocations: 0.6705 MB / 1.582 GB, free: 153.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009513/2.733, allocations: 1.013 MB / 1.583 GB, free: 152.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009867/2.734, allocations: 0.8569 MB / 1.584 GB, free: 151.5 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/2.734, allocations: 4 kB / 1.584 GB, free: 151.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002533/2.737, allocations: 1.924 MB / 1.585 GB, free: 149.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007415/2.738, allocations: 3.523 MB / 1.589 GB, free: 145.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/2.738, allocations: 10.16 kB / 1.589 GB, free: 145.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/2.738, allocations: 16 kB / 1.589 GB, free: 145.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/2.739, allocations: 356.7 kB / 1.589 GB, free: 145.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/2.739, allocations: 19.94 kB / 1.589 GB, free: 145.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/2.741, allocations: 230 kB / 1.59 GB, free: 145.2 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/2.741, allocations: 63.97 kB / 1.59 GB, free: 145.1 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/2.741, allocations: 4 kB / 1.59 GB, free: 145.1 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002254/2.743, allocations: 1.768 MB / 1.591 GB, free: 143.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/2.743, allocations: 8 kB / 1.591 GB, free: 143.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/2.743, allocations: 20 kB / 1.591 GB, free: 143.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/2.744, allocations: 345.5 kB / 1.592 GB, free: 143 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/2.744, allocations: 23.92 kB / 1.592 GB, free: 143 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/2.746, allocations: 197.4 kB / 1.592 GB, free: 142.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/2.746, allocations: 63.98 kB / 1.592 GB, free: 142.7 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (176): * Single equations (assignments): 176 * 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.001236/2.747, allocations: 0.7455 MB / 1.593 GB, free: 142 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/2.748, allocations: 150.1 kB / 1.593 GB, free: 141.8 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/2.75, allocations: 1.213 MB / 1.594 GB, free: 140.6 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/2.75, allocations: 11.98 kB / 1.594 GB, free: 140.6 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/2.75, allocations: 0 / 1.594 GB, free: 140.6 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001339/2.751, allocations: 1.253 MB / 1.595 GB, free: 139.3 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00536/2.756, allocations: 2.88 MB / 1.598 GB, free: 136.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/2.756, allocations: 0 / 1.598 GB, free: 136.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007818/2.757, allocations: 179.8 kB / 1.598 GB, free: 136.2 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.68e-05/2.757, allocations: 11.92 kB / 1.598 GB, free: 136.1 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.736e-05/2.757, allocations: 23.95 kB / 1.598 GB, free: 136.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/2.757, allocations: 4.078 kB / 1.598 GB, free: 136.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/2.757, allocations: 7.234 kB / 1.598 GB, free: 136.1 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/2.76, allocations: 1.907 MB / 1.6 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/2.761, allocations: 426.8 kB / 1.601 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000525/2.762, allocations: 23.98 kB / 1.601 GB, free: 133.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/2.763, allocations: 70.38 kB / 1.601 GB, free: 133.6 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-05/2.763, allocations: 58.8 kB / 1.601 GB, free: 133.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.685e-05/2.763, allocations: 31.98 kB / 1.601 GB, free: 133.5 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002232/2.765, allocations: 1.249 MB / 1.602 GB, free: 132.3 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.91e-07/2.765, allocations: 0 / 1.602 GB, free: 132.3 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003642/2.769, allocations: 0.9591 MB / 1.603 GB, free: 131.3 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * 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 (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.003792/2.773, allocations: 3.052 MB / 1.606 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003491/2.776, allocations: 2.298 MB / 1.608 GB, free: 126 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/2.776, allocations: 0 / 1.608 GB, free: 126 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005741/2.777, allocations: 0.5052 MB / 1.609 GB, free: 125.5 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00404/2.781, allocations: 0.8602 MB / 1.609 GB, free: 124.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/2.791, allocations: 11.5 MB / 1.621 GB, free: 113 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/2.793, allocations: 1.688 MB / 1.622 GB, free: 111.3 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003034/2.796, allocations: 0.9093 MB / 1.623 GB, free: 110.4 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/2.797, allocations: 0.6164 MB / 1.624 GB, free: 109.8 MB / 0.7136 GB Notification: Performance of SimCode: time 1.453e-06/2.797, allocations: 0 / 1.624 GB, free: 109.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08566/2.883, allocations: 50.64 MB / 1.673 GB, free: 59.97 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/2.883, allocations: 267 kB / 1.673 GB, free: 59.62 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.932/6.815, allocations: 0 / 1.673 GB, free: 59.62 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)