Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.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.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",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.8287/0.8287, allocations: 141.8 MB / 149.3 MB, free: 9.227 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.001153/0.001153, allocations: 180.8 kB / 182.2 MB, free: 9.465 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.415/1.415, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0008146/0.0008146, allocations: 92 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 270.7 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.001e-05, allocations: 4 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.4134, allocations: 82.77 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7527/1.166, allocations: 395.1 MB / 1.143 GB, free: 2.371 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.166, allocations: 93.58 kB / 1.143 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.887/5.053, allocations: 1.058 GB / 2.201 GB, free: 48.14 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.653e-06/5.053, allocations: 0 / 2.201 GB, free: 48.14 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003166/5.053, allocations: 75.98 kB / 2.201 GB, free: 48.06 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: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.008145/5.061, allocations: 3.225 MB / 2.204 GB, free: 44.74 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/5.062, allocations: 8.031 kB / 2.204 GB, free: 44.73 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00878/5.07, allocations: 1.206 MB / 2.205 GB, free: 43.52 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007373/5.078, allocations: 3.292 MB / 2.209 GB, free: 40.17 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/5.078, allocations: 163.9 kB / 2.209 GB, free: 39.99 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000504/5.078, allocations: 144 kB / 2.209 GB, free: 39.85 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003734/5.082, allocations: 1.991 MB / 2.211 GB, free: 37.86 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003979/5.086, allocations: 2.497 MB / 2.213 GB, free: 35.16 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.366e-05/5.086, allocations: 11.92 kB / 2.213 GB, free: 35.15 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002562/5.087, allocations: 8 kB / 2.213 GB, free: 35.14 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.884e-05/5.087, allocations: 104.2 kB / 2.213 GB, free: 35.04 MB / 0.7136 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.01879/5.105, allocations: 12.81 MB / 2.226 GB, free: 21.71 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/5.107, allocations: 1.15 MB / 2.227 GB, free: 20.52 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/5.108, allocations: 0.5742 MB / 2.228 GB, free: 19.95 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001412/5.109, allocations: 1.778 MB / 2.229 GB, free: 17.78 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/5.11, allocations: 0.9033 MB / 2.23 GB, free: 16.78 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 3.717e-06/5.11, allocations: 0 / 2.23 GB, free: 16.78 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.02166/5.132, allocations: 10.49 MB / 2.24 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002422/5.132, allocations: 0.9365 MB / 2.241 GB, free: 4.949 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/5.135, allocations: 1.824 MB / 2.243 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.00035/5.135, allocations: 37.7 kB / 2.243 GB, free: 3.062 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001117/5.136, allocations: 1.388 MB / 2.244 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000437/5.137, allocations: 414 kB / 2.245 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/5.137, allocations: 0 / 2.245 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001235/5.137, allocations: 361.9 kB / 2.245 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009064/5.138, allocations: 0.5819 MB / 2.246 GB, free: 308 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/5.14, allocations: 1.199 MB / 2.247 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003765/5.143, allocations: 0.9532 MB / 2.248 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/5.143, allocations: 0 / 2.248 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006712/5.15, allocations: 2.345 MB / 2.25 GB, free: 11.53 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.002023/5.152, allocations: 5.124 MB / 2.255 GB, free: 5.875 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/5.152, allocations: 12 kB / 2.255 GB, free: 5.863 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/5.154, allocations: 0.7079 MB / 2.256 GB, free: 5.156 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/5.157, allocations: 459.2 kB / 2.256 GB, free: 4.707 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004111/5.161, allocations: 2.28 MB / 2.259 GB, free: 2.379 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005241/5.166, allocations: 359.2 kB / 2.259 GB, free: 2.027 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004531/5.166, allocations: 112 kB / 2.259 GB, free: 1.918 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/5.166, allocations: 4 kB / 2.259 GB, free: 1.914 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5532/5.72, allocations: 2.047 MB / 2.261 GB, free: 74.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.356e-05/5.72, allocations: 11.97 kB / 2.261 GB, free: 74.38 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/5.722, allocations: 0.7092 MB / 2.262 GB, free: 74.36 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/5.725, allocations: 441.2 kB / 2.262 GB, free: 74.36 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004125/5.729, allocations: 2.274 MB / 2.264 GB, free: 73.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005058/5.734, allocations: 302.5 kB / 2.265 GB, free: 73.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005367/5.735, allocations: 106.5 kB / 2.265 GB, free: 73.32 MB / 0.7292 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,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.000681/5.735, allocations: 171.1 kB / 2.265 GB, free: 73.21 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005766/5.741, allocations: 1.75 MB / 2.267 GB, free: 73.16 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000589/5.742, allocations: 240.1 kB / 2.267 GB, free: 73.16 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006116/5.748, allocations: 1.832 MB / 2.269 GB, free: 73.05 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-05/5.748, allocations: 19.88 kB / 2.269 GB, free: 73.05 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/5.748, allocations: 4.531 kB / 2.269 GB, free: 73.05 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0049/5.753, allocations: 1.663 MB / 2.27 GB, free: 72.76 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/5.766, allocations: 6.15 MB / 2.276 GB, free: 70.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/5.766, allocations: 9.375 kB / 2.276 GB, free: 70.89 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/5.768, allocations: 280.6 kB / 2.277 GB, free: 70.89 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/5.769, allocations: 0.6014 MB / 2.277 GB, free: 70.87 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/5.769, allocations: 33.27 kB / 2.277 GB, free: 70.87 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/5.772, allocations: 2.029 MB / 2.279 GB, free: 69.83 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/5.772, allocations: 10.69 kB / 2.279 GB, free: 69.83 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007579/5.78, allocations: 3.3 MB / 2.282 GB, free: 68.74 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/5.782, allocations: 0.6075 MB / 2.283 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004408/5.782, allocations: 17.3 kB / 2.283 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003077/5.785, allocations: 243.6 kB / 2.283 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/5.785, allocations: 106.9 kB / 2.283 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/5.786, allocations: 72.84 kB / 2.283 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.002214/5.788, allocations: 1.375 MB / 2.285 GB, free: 68.37 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.7e-07/5.788, allocations: 1.406 kB / 2.285 GB, free: 68.37 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00642/5.794, allocations: 1.564 MB / 2.286 GB, free: 68.37 MB / 0.7292 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.01064/5.805, allocations: 6.831 MB / 2.293 GB, free: 64.98 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.006426/5.811, allocations: 2.782 MB / 2.296 GB, free: 64.8 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/5.811, allocations: 4.75 kB / 2.296 GB, free: 64.8 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.002022/5.813, allocations: 0.8414 MB / 2.296 GB, free: 64.79 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00633/5.82, allocations: 1.101 MB / 2.298 GB, free: 64.77 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/5.834, allocations: 4.363 MB / 2.302 GB, free: 63.61 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00134/5.835, allocations: 1.776 MB / 2.304 GB, free: 62.88 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.00446/5.839, allocations: 0.713 MB / 2.304 GB, free: 62.85 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/5.841, allocations: 1.116 MB / 2.305 GB, free: 62.85 MB / 0.7292 GB Notification: Performance of SimCode: time 1.282e-06/5.841, allocations: 0.75 kB / 2.305 GB, free: 62.85 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1478/5.989, allocations: 86.66 MB / 2.39 GB, free: 57.87 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/5.989, allocations: 198.1 kB / 2.39 GB, free: 57.59 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.442/11.43, allocations: 4 kB / 2.39 GB, free: 57.59 MB / 0.7292 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)