Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.546/2.546, allocations: 387.1 MB / 399.7 MB, free: 9.516 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 175.4 kB / 492.3 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 221.3 MB / 0.7872 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008263/0.0008262, allocations: 93.33 kB / 0.9267 GB, free: 14.05 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.257e-05/4.272e-05, allocations: 6.25 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2557, allocations: 142.4 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.336, allocations: 436.4 MB / 1.639 GB, free: 10.38 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/1.336, allocations: 90.48 kB / 1.639 GB, free: 10.34 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 4.295/5.631, allocations: 1.067 GB / 2.706 GB, free: 160 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.583e-06/5.631, allocations: 0 / 2.706 GB, free: 160 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0005254/5.632, allocations: 81.94 kB / 2.706 GB, free: 160 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.01036/5.642, allocations: 3.215 MB / 2.709 GB, free: 158.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.488e-05/5.642, allocations: 11.5 kB / 2.709 GB, free: 158.8 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00126/5.644, allocations: 323.8 kB / 2.71 GB, free: 158.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009382/5.653, allocations: 1.215 MB / 2.711 GB, free: 158.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/5.664, allocations: 3.306 MB / 2.714 GB, free: 158.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004572/5.665, allocations: 258.9 kB / 2.714 GB, free: 158.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/5.666, allocations: 229.9 kB / 2.715 GB, free: 158.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005772/5.672, allocations: 2.836 MB / 2.717 GB, free: 157.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/5.672, allocations: 6 kB / 2.717 GB, free: 157.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/5.672, allocations: 102.1 kB / 2.717 GB, free: 157.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/5.672, allocations: 92.98 kB / 2.717 GB, free: 157.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004124/5.676, allocations: 2.142 MB / 2.72 GB, free: 157.5 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.02107/5.697, allocations: 13.36 MB / 2.733 GB, free: 151.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/5.699, allocations: 1.193 MB / 2.734 GB, free: 151.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008555/5.7, allocations: 0.6109 MB / 2.734 GB, free: 151.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001551/5.702, allocations: 1.78 MB / 2.736 GB, free: 149.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/5.703, allocations: 0.9464 MB / 2.737 GB, free: 149.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=118): time 4.238e-06/5.703, allocations: 0 / 2.737 GB, free: 149.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=122): time 0.01606/5.719, allocations: 10.04 MB / 2.747 GB, free: 143.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002426/5.719, allocations: 0.9413 MB / 2.748 GB, free: 142.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/5.723, allocations: 2.347 MB / 2.75 GB, free: 141.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0004236/5.724, allocations: 55.05 kB / 2.75 GB, free: 141.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001179/5.725, allocations: 1.367 MB / 2.751 GB, free: 141.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005521/5.725, allocations: 429.9 kB / 2.752 GB, free: 141.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/5.725, allocations: 32.56 kB / 2.752 GB, free: 141.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001295/5.726, allocations: 366.4 kB / 2.752 GB, free: 140.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/5.727, allocations: 0.6116 MB / 2.753 GB, free: 140.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/5.728, allocations: 1.236 MB / 2.754 GB, free: 140.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/5.729, allocations: 0.7581 MB / 2.755 GB, free: 140 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/5.729, allocations: 3.875 kB / 2.755 GB, free: 140 MB / 1.167 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004636/5.734, allocations: 2.312 MB / 2.757 GB, free: 139.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001291/5.735, allocations: 5.258 MB / 2.762 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.366e-05/5.735, allocations: 13.69 kB / 2.762 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002667/5.738, allocations: 0.8734 MB / 2.763 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/5.741, allocations: 454.7 kB / 2.763 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003027/5.744, allocations: 2.171 MB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005714/5.749, allocations: 421.7 kB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004848/5.75, allocations: 107.5 kB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/5.75, allocations: 3.906 kB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003756/5.754, allocations: 2.03 MB / 2.768 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/5.754, allocations: 15.22 kB / 2.768 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/5.756, allocations: 0.879 MB / 2.769 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/5.759, allocations: 438.1 kB / 2.769 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/5.762, allocations: 2.167 MB / 2.772 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/5.767, allocations: 360.3 kB / 2.772 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005113/5.767, allocations: 108.6 kB / 2.772 GB, free: 132 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,heaPum.stage,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 22,5 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006772/5.768, allocations: 222.6 kB / 2.772 GB, free: 131.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009719/5.769, allocations: 284 kB / 2.772 GB, free: 131.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004659/5.774, allocations: 1.72 MB / 2.774 GB, free: 131.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/5.774, allocations: 19.62 kB / 2.774 GB, free: 131.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/5.774, allocations: 3.875 kB / 2.774 GB, free: 131.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003071/5.777, allocations: 1.485 MB / 2.776 GB, free: 131.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/5.792, allocations: 6.295 MB / 2.782 GB, free: 129.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/5.792, allocations: 5.781 kB / 2.782 GB, free: 129.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/5.793, allocations: 279 kB / 2.782 GB, free: 129.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002368/5.796, allocations: 0.7271 MB / 2.783 GB, free: 129.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/5.796, allocations: 44.2 kB / 2.783 GB, free: 129.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/5.798, allocations: 1.936 MB / 2.785 GB, free: 128.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/5.798, allocations: 9.844 kB / 2.785 GB, free: 128.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0051/5.803, allocations: 3.27 MB / 2.788 GB, free: 126.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002473/5.806, allocations: 0.6523 MB / 2.788 GB, free: 126.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007139/5.807, allocations: 34.61 kB / 2.789 GB, free: 126.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003373/5.81, allocations: 275.4 kB / 2.789 GB, free: 126.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/5.81, allocations: 120.1 kB / 2.789 GB, free: 126.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/5.81, allocations: 68.66 kB / 2.789 GB, free: 126.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002969/5.813, allocations: 1.82 MB / 2.791 GB, free: 126.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.8e-07/5.813, allocations: 2.562 kB / 2.791 GB, free: 126.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.007234/5.821, allocations: 1.655 MB / 2.792 GB, free: 126.3 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (heaPum1.port_b1.h_outflow,heaPum1.port_b2.h_outflow) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum.stage,heaPum1.com.isOn,N.T_start,N.count) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 17,5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.007628/5.828, allocations: 6.681 MB / 2.799 GB, free: 122.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006452/5.835, allocations: 2.959 MB / 2.802 GB, free: 122.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/5.835, allocations: 4.531 kB / 2.802 GB, free: 122.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00212/5.837, allocations: 0.874 MB / 2.803 GB, free: 122.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008706/5.846, allocations: 1.504 MB / 2.804 GB, free: 122.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/5.86, allocations: 4.571 MB / 2.809 GB, free: 121.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/5.861, allocations: 1.779 MB / 2.81 GB, free: 120.5 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.004651/5.866, allocations: 0.8359 MB / 2.811 GB, free: 120.5 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/5.867, allocations: 1.117 MB / 2.812 GB, free: 120.5 MB / 1.167 GB Notification: Performance of SimCode: time 1.382e-06/5.867, allocations: 0 / 2.812 GB, free: 120.5 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2158/6.083, allocations: 107.8 MB / 2.918 GB, free: 115.4 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/6.083, allocations: 239.5 kB / 2.918 GB, free: 115.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.239/12.32, allocations: 0 / 2.918 GB, free: 115.1 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat does not exist to compare? outputFormat=mat