Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.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_VariableSpeed,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",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.297/2.297, allocations: 387.1 MB / 399.7 MB, free: 9.52 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.001264/0.001264, allocations: 184 kB / 492.3 MB, free: 0.6289 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.706/1.706, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008982/0.0008981, allocations: 102.7 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.401e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2823, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.207/1.489, allocations: 435.4 MB / 1.638 GB, free: 11.26 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/1.489, allocations: 89.52 kB / 1.638 GB, free: 11.21 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.468/3.958, allocations: 0.5606 GB / 2.198 GB, free: 237.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.823e-06/3.958, allocations: 0 / 2.198 GB, free: 237.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002733/3.958, allocations: 45.03 kB / 2.198 GB, free: 237.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.00523/3.963, allocations: 1.905 MB / 2.2 GB, free: 237.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/3.963, allocations: 9.594 kB / 2.2 GB, free: 237.2 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002679/3.964, allocations: 174.2 kB / 2.2 GB, free: 237.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00451/3.968, allocations: 0.6148 MB / 2.201 GB, free: 237.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/3.972, allocations: 1.797 MB / 2.203 GB, free: 236.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/3.973, allocations: 128.1 kB / 2.203 GB, free: 236.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/3.973, allocations: 124.1 kB / 2.203 GB, free: 236.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003142/3.976, allocations: 1.441 MB / 2.204 GB, free: 236.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/3.976, allocations: 6.453 kB / 2.204 GB, free: 236.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/3.976, allocations: 52.59 kB / 2.204 GB, free: 236.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/3.976, allocations: 51.59 kB / 2.205 GB, free: 236.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/3.979, allocations: 1.099 MB / 2.206 GB, free: 236.5 MB / 1.151 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.01152/3.99, allocations: 6.773 MB / 2.212 GB, free: 233.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/3.991, allocations: 0.5301 MB / 2.213 GB, free: 233.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005642/3.992, allocations: 340.1 kB / 2.213 GB, free: 233.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001207/3.993, allocations: 1.267 MB / 2.214 GB, free: 232.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008902/3.994, allocations: 0.5267 MB / 2.215 GB, free: 232 MB / 1.151 GB Notification: Performance of pre-optimization done (n=65): time 4.288e-06/3.994, allocations: 0 / 2.215 GB, free: 232 MB / 1.151 GB Notification: Performance of matching and sorting (n=65): time 0.002012/3.996, allocations: 0.841 MB / 2.216 GB, free: 231.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/3.996, allocations: 486.1 kB / 2.216 GB, free: 231.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/3.998, allocations: 1.242 MB / 2.217 GB, free: 231.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001192/3.998, allocations: 47.25 kB / 2.217 GB, free: 231.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005758/3.999, allocations: 0.711 MB / 2.218 GB, free: 230.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/3.999, allocations: 233.7 kB / 2.218 GB, free: 230.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/3.999, allocations: 20.31 kB / 2.218 GB, free: 230.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.991e-05/3.999, allocations: 337.2 kB / 2.219 GB, free: 230.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005905/4, allocations: 329 kB / 2.219 GB, free: 230.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000793/4.001, allocations: 0.6337 MB / 2.22 GB, free: 230.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007406/4.001, allocations: 419.6 kB / 2.22 GB, free: 230.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/4.001, allocations: 1.375 kB / 2.22 GB, free: 230.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003595/4.005, allocations: 1.259 MB / 2.221 GB, free: 230 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000469/4.006, allocations: 2.527 MB / 2.224 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/4.006, allocations: 6.438 kB / 2.224 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/4.007, allocations: 329 kB / 2.224 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/4.008, allocations: 270.6 kB / 2.224 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000875/4.009, allocations: 0.8383 MB / 2.225 GB, free: 226.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/4.012, allocations: 286.6 kB / 2.225 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/4.012, allocations: 58.56 kB / 2.225 GB, free: 226.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/4.012, allocations: 2.75 kB / 2.225 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003394/4.016, allocations: 1.108 MB / 2.226 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/4.016, allocations: 9.906 kB / 2.226 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/4.017, allocations: 330.2 kB / 2.227 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/4.018, allocations: 264.5 kB / 2.227 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007922/4.019, allocations: 0.8446 MB / 2.228 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/4.022, allocations: 253.9 kB / 2.228 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/4.022, allocations: 56.64 kB / 2.228 GB, free: 226.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.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 (90): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003922/4.022, allocations: 169.5 kB / 2.228 GB, free: 226.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003918/4.023, allocations: 149.2 kB / 2.228 GB, free: 226 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/4.026, allocations: 0.9418 MB / 2.229 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/4.026, allocations: 9.141 kB / 2.229 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/4.026, allocations: 3.625 kB / 2.229 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002084/4.028, allocations: 0.8201 MB / 2.23 GB, free: 225.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006776/4.034, allocations: 3.277 MB / 2.233 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/4.035, allocations: 10.08 kB / 2.233 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009966/4.036, allocations: 159.6 kB / 2.234 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/4.037, allocations: 329.2 kB / 2.234 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.346e-05/4.037, allocations: 25.52 kB / 2.234 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007766/4.037, allocations: 0.8494 MB / 2.235 GB, free: 224.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/4.038, allocations: 11.33 kB / 2.235 GB, free: 224.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003557/4.041, allocations: 1.811 MB / 2.236 GB, free: 223.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/4.042, allocations: 393.9 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/4.042, allocations: 22.86 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/4.044, allocations: 149.4 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/4.044, allocations: 66.66 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.474e-05/4.044, allocations: 41.48 kB / 2.237 GB, free: 223.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001722/4.046, allocations: 0.9852 MB / 2.238 GB, free: 223.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.21e-07/4.046, allocations: 3.281 kB / 2.238 GB, free: 223.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003709/4.05, allocations: 0.993 MB / 2.239 GB, free: 223.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,heaPum.com.isOn,N.T_start,N.count) * Number of discrete states: 2 (N.count,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005359/4.055, allocations: 4.124 MB / 2.243 GB, free: 220.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002998/4.058, allocations: 1.477 MB / 2.245 GB, free: 220.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/4.058, allocations: 1.188 kB / 2.245 GB, free: 220.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008309/4.059, allocations: 412.5 kB / 2.245 GB, free: 220.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/4.064, allocations: 0.7873 MB / 2.246 GB, free: 220.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008594/4.072, allocations: 2.487 MB / 2.248 GB, free: 219.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007299/4.073, allocations: 1.254 MB / 2.249 GB, free: 219.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002515/4.075, allocations: 474.1 kB / 2.25 GB, free: 219.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00065/4.076, allocations: 0.5494 MB / 2.25 GB, free: 219.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/4.076, allocations: 0 / 2.25 GB, free: 219.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08675/4.163, allocations: 57.12 MB / 2.306 GB, free: 217.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/4.163, allocations: 242.5 kB / 2.306 GB, free: 217.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.207/8.37, allocations: 1.719 kB / 2.306 GB, free: 217.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed_res.mat does not exist to compare? outputFormat=mat