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.6946/0.6946, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008939/0.0008941, allocations: 182 kB / 187.3 MB, free: 11.88 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.235/1.235, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0008783/0.0008782, allocations: 92.05 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001688/0.001688, allocations: 282.4 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.537e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3498, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.673/1.023, allocations: 395.7 MB / 1.151 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/1.023, allocations: 91.64 kB / 1.151 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.271/4.294, allocations: 1.063 GB / 2.214 GB, free: 38.47 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.653e-06/4.294, allocations: 4 kB / 2.214 GB, free: 38.46 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.000443/4.294, allocations: 83.91 kB / 2.214 GB, free: 38.38 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.00757/4.302, allocations: 3.202 MB / 2.217 GB, free: 35.09 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/4.302, allocations: 12.03 kB / 2.217 GB, free: 35.07 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007784/4.303, allocations: 327.9 kB / 2.217 GB, free: 34.75 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007866/4.311, allocations: 1.206 MB / 2.218 GB, free: 33.54 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00596/4.317, allocations: 3.287 MB / 2.222 GB, free: 30.18 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/4.317, allocations: 251.9 kB / 2.222 GB, free: 29.92 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004149/4.317, allocations: 232 kB / 2.222 GB, free: 29.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00408/4.321, allocations: 2.837 MB / 2.225 GB, free: 26.65 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.372e-05/4.321, allocations: 7.938 kB / 2.225 GB, free: 26.64 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002517/4.322, allocations: 100 kB / 2.225 GB, free: 26.55 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.918e-05/4.322, allocations: 96.27 kB / 2.225 GB, free: 26.45 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00304/4.325, allocations: 2.149 MB / 2.227 GB, free: 24.29 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.01499/4.34, allocations: 13.36 MB / 2.24 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/4.341, allocations: 1.187 MB / 2.241 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/4.342, allocations: 0.6167 MB / 2.242 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001251/4.343, allocations: 1.77 MB / 2.244 GB, free: 6.383 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/4.344, allocations: 0.9392 MB / 2.244 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 3.025e-06/4.344, allocations: 0 / 2.244 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.01357/4.358, allocations: 10.04 MB / 2.254 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002975/4.358, allocations: 0.9361 MB / 2.255 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/4.361, allocations: 2.338 MB / 2.257 GB, free: 7.613 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0002449/4.362, allocations: 61.7 kB / 2.258 GB, free: 7.547 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.001062/4.363, allocations: 1.353 MB / 2.259 GB, free: 6.176 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/4.363, allocations: 429.9 kB / 2.259 GB, free: 5.75 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/4.363, allocations: 32 kB / 2.259 GB, free: 5.719 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001198/4.363, allocations: 369.9 kB / 2.26 GB, free: 5.352 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/4.364, allocations: 0.6092 MB / 2.26 GB, free: 4.742 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/4.366, allocations: 1.239 MB / 2.261 GB, free: 3.242 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/4.367, allocations: 0.7624 MB / 2.262 GB, free: 2.48 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/4.367, allocations: 4 kB / 2.262 GB, free: 2.477 MB / 0.7292 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.003906/4.371, allocations: 2.313 MB / 2.264 GB, free: 144 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.001464/4.372, allocations: 5.257 MB / 2.27 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/4.372, allocations: 12 kB / 2.27 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/4.375, allocations: 0.8677 MB / 2.27 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/4.377, allocations: 459.2 kB / 2.271 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/4.38, allocations: 2.169 MB / 2.273 GB, free: 6.945 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004573/4.385, allocations: 423.2 kB / 2.273 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/4.385, allocations: 107.9 kB / 2.274 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/4.385, allocations: 8 kB / 2.274 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003541/4.389, allocations: 2.021 MB / 2.276 GB, free: 4.387 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/4.389, allocations: 12 kB / 2.276 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002721/4.391, allocations: 0.874 MB / 2.276 GB, free: 3.504 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/4.394, allocations: 439.2 kB / 2.277 GB, free: 3.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/4.397, allocations: 2.171 MB / 2.279 GB, free: 0.8516 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/4.401, allocations: 371.2 kB / 2.279 GB, free: 500 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/4.401, allocations: 99.89 kB / 2.279 GB, free: 400 kB / 0.7448 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.0004694/4.401, allocations: 225.8 kB / 2.28 GB, free: 168 kB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3962/4.798, allocations: 281.2 kB / 2.28 GB, free: 85.52 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/4.803, allocations: 1.712 MB / 2.282 GB, free: 85.43 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.425e-05/4.803, allocations: 16.16 kB / 2.282 GB, free: 85.43 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/4.803, allocations: 6.766 kB / 2.282 GB, free: 85.43 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003382/4.806, allocations: 1.485 MB / 2.283 GB, free: 85.15 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/4.817, allocations: 6.298 MB / 2.289 GB, free: 83.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/4.817, allocations: 8.562 kB / 2.289 GB, free: 83.25 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/4.818, allocations: 281.5 kB / 2.289 GB, free: 83.25 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/4.82, allocations: 0.7147 MB / 2.29 GB, free: 83.23 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/4.82, allocations: 50.61 kB / 2.29 GB, free: 83.23 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/4.822, allocations: 1.935 MB / 2.292 GB, free: 82.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/4.822, allocations: 14.89 kB / 2.292 GB, free: 82.19 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003934/4.826, allocations: 3.258 MB / 2.295 GB, free: 80.93 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/4.828, allocations: 0.6526 MB / 2.296 GB, free: 80.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/4.828, allocations: 32.38 kB / 2.296 GB, free: 80.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002835/4.831, allocations: 285.6 kB / 2.296 GB, free: 80.84 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/4.831, allocations: 115.8 kB / 2.296 GB, free: 80.83 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/4.831, allocations: 76 kB / 2.296 GB, free: 80.83 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.002554/4.834, allocations: 1.811 MB / 2.298 GB, free: 80.67 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.5e-07/4.834, allocations: 3.844 kB / 2.298 GB, free: 80.67 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.004644/4.839, allocations: 1.648 MB / 2.3 GB, free: 80.67 MB / 0.7448 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.006319/4.845, allocations: 6.674 MB / 2.306 GB, free: 77.3 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.006703/4.852, allocations: 2.963 MB / 2.309 GB, free: 77.11 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/4.852, allocations: 4.594 kB / 2.309 GB, free: 77.11 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.002105/4.854, allocations: 0.8786 MB / 2.31 GB, free: 77.09 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00729/4.861, allocations: 1.519 MB / 2.312 GB, free: 77.08 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/4.871, allocations: 4.559 MB / 2.316 GB, free: 75.92 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009675/4.872, allocations: 1.776 MB / 2.318 GB, free: 75.18 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003921/4.876, allocations: 0.8398 MB / 2.319 GB, free: 75.15 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/4.878, allocations: 1.119 MB / 2.32 GB, free: 75.15 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/4.878, allocations: 0 / 2.32 GB, free: 75.15 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1344/5.012, allocations: 108.2 MB / 2.425 GB, free: 69.61 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/5.012, allocations: 254 kB / 2.426 GB, free: 69.27 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.16/10.17, allocations: 8 kB / 2.426 GB, free: 69.27 MB / 0.7448 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)