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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001019, allocations: 101.5 kB / 15.06 MB, free: 1.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009976/0.0009979, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.343/2.343, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004664/0.0004665, allocations: 8 kB / 0.8146 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7999/0.8004, allocations: 142.3 MB / 0.9536 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed): time 0.06136/0.8618, allocations: 58.58 MB / 1.011 GB, free: 5.484 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02132/0.8832, allocations: 12.28 MB / 1.023 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00379/0.887, allocations: 63.56 kB / 1.023 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.004016/0.8911, allocations: 0.7928 MB / 1.024 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0104/0.9015, allocations: 2.239 MB / 1.026 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.007201/0.9087, allocations: 1.907 MB / 1.028 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007155/0.9159, allocations: 2.698 MB / 1.03 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00344/0.9194, allocations: 1.172 MB / 1.031 GB, free: 316 kB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004258/0.9237, allocations: 1.281 MB / 1.033 GB, free: 15.02 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002103/0.9259, allocations: 0.8322 MB / 1.034 GB, free: 14.19 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005765/0.9265, allocations: 68 kB / 1.034 GB, free: 14.12 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003971/0.9304, allocations: 1.17 MB / 1.035 GB, free: 12.95 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0006413/0.9311, allocations: 314.8 kB / 1.035 GB, free: 12.64 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009963/0.9321, allocations: 404.8 kB / 1.035 GB, free: 12.24 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004083/0.9362, allocations: 2.447 MB / 1.038 GB, free: 9.785 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9362, allocations: 4 kB / 1.038 GB, free: 9.781 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9363, allocations: 4 kB / 1.038 GB, free: 9.777 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.952e-05/0.9363, allocations: 0 / 1.038 GB, free: 9.777 MB / 0.795 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.004365/0.9407, allocations: 1.974 MB / 1.04 GB, free: 7.727 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.9408, allocations: 8.031 kB / 1.04 GB, free: 7.719 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003175/0.9411, allocations: 185.4 kB / 1.04 GB, free: 7.527 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004659/0.9458, allocations: 0.6963 MB / 1.041 GB, free: 6.828 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002983/0.9488, allocations: 1.449 MB / 1.042 GB, free: 5.324 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.9489, allocations: 128 kB / 1.042 GB, free: 5.191 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/0.9492, allocations: 120 kB / 1.042 GB, free: 5.074 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003656/0.9528, allocations: 1.646 MB / 1.044 GB, free: 3.34 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.9529, allocations: 3.938 kB / 1.044 GB, free: 3.336 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.953, allocations: 55.95 kB / 1.044 GB, free: 3.281 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.9531, allocations: 35.98 kB / 1.044 GB, free: 3.246 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.9573, allocations: 1.488 MB / 1.045 GB, free: 1.75 MB / 0.795 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.009846/0.9672, allocations: 7.02 MB / 1.052 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.9694, allocations: 0.7993 MB / 1.053 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/0.9706, allocations: 1.271 MB / 1.054 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001813/0.9724, allocations: 0.6597 MB / 1.055 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.805e-06/0.9724, allocations: 0 / 1.055 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.009511/0.9819, allocations: 2.154 MB / 1.057 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.9821, allocations: 325 kB / 1.057 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.9843, allocations: 1.426 MB / 1.059 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.9844, allocations: 45.7 kB / 1.059 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005969/0.985, allocations: 0.7075 MB / 1.059 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002299/0.9852, allocations: 240.5 kB / 1.06 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.05e-05/0.9853, allocations: 20 kB / 1.06 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.9854, allocations: 341.9 kB / 1.06 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.9872, allocations: 0.5289 MB / 1.061 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.9892, allocations: 0.8218 MB / 1.061 GB, free: 500 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.9911, allocations: 0.5983 MB / 1.062 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.9911, allocations: 7.938 kB / 1.062 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.006877/0.998, allocations: 1.825 MB / 1.064 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008891/0.9989, allocations: 2.515 MB / 1.066 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.9989, allocations: 4 kB / 1.066 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/1, allocations: 364.7 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/1.002, allocations: 279.5 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/1.003, allocations: 0.9128 MB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002418/1.005, allocations: 289.7 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/1.005, allocations: 51.95 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/1.005, allocations: 11.94 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006577/1.012, allocations: 1.681 MB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/1.012, allocations: 8 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/1.013, allocations: 373.1 kB / 1.07 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/1.015, allocations: 275.6 kB / 1.07 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/1.016, allocations: 0.9156 MB / 1.071 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/1.018, allocations: 254.8 kB / 1.071 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/1.018, allocations: 59.94 kB / 1.071 GB, free: 5.871 MB / 0.8262 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * 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.0009599/1.019, allocations: 452.8 kB / 1.072 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004302/1.02, allocations: 150.2 kB / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003991/1.024, allocations: 1.279 MB / 1.073 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/1.024, allocations: 11.98 kB / 1.073 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/1.024, allocations: 4 kB / 1.073 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003224/1.027, allocations: 1.08 MB / 1.074 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007361/1.034, allocations: 3.35 MB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/1.034, allocations: 4 kB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009375/1.035, allocations: 163.9 kB / 1.078 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/1.036, allocations: 364.2 kB / 1.078 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/1.037, allocations: 27.97 kB / 1.078 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/1.038, allocations: 0.901 MB / 1.079 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/1.038, allocations: 11.94 kB / 1.079 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005587/1.043, allocations: 2.238 MB / 1.081 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.044, allocations: 410.8 kB / 1.082 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/1.045, allocations: 27.94 kB / 1.082 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00191/1.047, allocations: 155.8 kB / 1.082 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/1.047, allocations: 72.23 kB / 1.082 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/1.047, allocations: 39.95 kB / 1.082 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001973/1.049, allocations: 1.025 MB / 1.083 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/1.049, allocations: 0 / 1.083 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003211/1.052, allocations: 0.9046 MB / 1.084 GB, free: 8.75 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 46 * 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.007581/1.06, allocations: 4.417 MB / 1.088 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.006291/1.066, allocations: 2.007 MB / 1.09 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/1.066, allocations: 7.859 kB / 1.09 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001835/1.068, allocations: 0.5721 MB / 1.091 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004294/1.072, allocations: 0.7698 MB / 1.091 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/1.082, allocations: 8.256 MB / 1.099 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009751/1.083, allocations: 1.242 MB / 1.101 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002297/1.086, allocations: 374 kB / 1.101 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/1.087, allocations: 0.5734 MB / 1.102 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of SimCode: time 1.923e-06/1.087, allocations: 4 kB / 1.102 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08808/1.175, allocations: 49.71 MB / 1.15 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/1.175, allocations: 275.3 kB / 1.15 GB, free: 4.707 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.102/4.277, allocations: 0 / 1.15 GB, free: 4.707 MB / 0.9044 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