Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_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.ScrollWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ScrollWaterToWater_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.6827/0.6827, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.001015/0.001015, allocations: 177.7 kB / 187.3 MB, free: 11.89 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.194/1.194, 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.0007844/0.0007844, allocations: 95.91 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001696/0.001697, allocations: 280.6 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.851e-05, allocations: 8 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3404, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6301/0.9705, allocations: 396.2 MB / 1.151 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.9708, allocations: 94.62 kB / 1.151 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.267/4.238, allocations: 1.062 GB / 2.213 GB, free: 38.66 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.493e-06/4.238, allocations: 4 kB / 2.213 GB, free: 38.66 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002378/4.238, allocations: 75.92 kB / 2.213 GB, free: 38.58 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: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.005388/4.243, allocations: 3.188 MB / 2.217 GB, free: 35.3 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/4.243, allocations: 8.031 kB / 2.217 GB, free: 35.29 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003487/4.244, allocations: 320.7 kB / 2.217 GB, free: 34.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008547/4.252, allocations: 1.328 MB / 2.218 GB, free: 33.64 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005822/4.258, allocations: 3.278 MB / 2.221 GB, free: 30.29 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/4.258, allocations: 255.9 kB / 2.222 GB, free: 30.03 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003367/4.259, allocations: 232 kB / 2.222 GB, free: 29.8 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004082/4.263, allocations: 2.829 MB / 2.225 GB, free: 26.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/4.263, allocations: 7.938 kB / 2.225 GB, free: 26.76 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002414/4.263, allocations: 104 kB / 2.225 GB, free: 26.66 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.347e-05/4.263, allocations: 64 kB / 2.225 GB, free: 26.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/4.266, allocations: 2.168 MB / 2.227 GB, free: 24.41 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.01565/4.282, allocations: 13.52 MB / 2.24 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/4.283, allocations: 1.228 MB / 2.241 GB, free: 9.055 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008021/4.284, allocations: 0.6422 MB / 2.242 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001299/4.285, allocations: 1.773 MB / 2.244 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/4.287, allocations: 0.9801 MB / 2.245 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 3.546e-06/4.287, allocations: 1.422 kB / 2.245 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.01445/4.301, allocations: 10.09 MB / 2.254 GB, free: 10.9 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003547/4.302, allocations: 0.9363 MB / 2.255 GB, free: 9.742 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/4.305, allocations: 2.338 MB / 2.258 GB, free: 7.391 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0002721/4.305, allocations: 61.7 kB / 2.258 GB, free: 7.324 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.001181/4.306, allocations: 1.351 MB / 2.259 GB, free: 5.961 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000416/4.307, allocations: 426 kB / 2.259 GB, free: 5.539 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/4.307, allocations: 32 kB / 2.26 GB, free: 5.508 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001497/4.307, allocations: 369.9 kB / 2.26 GB, free: 5.141 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/4.308, allocations: 0.6326 MB / 2.26 GB, free: 4.508 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001702/4.31, allocations: 1.274 MB / 2.262 GB, free: 2.973 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/4.311, allocations: 0.7735 MB / 2.262 GB, free: 2.199 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/4.311, allocations: 4 kB / 2.262 GB, free: 2.195 MB / 0.7292 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004371/4.316, allocations: 2.367 MB / 2.265 GB, free: 15.8 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001808/4.317, allocations: 5.247 MB / 2.27 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/4.318, allocations: 12 kB / 2.27 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/4.32, allocations: 1.059 MB / 2.271 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/4.323, allocations: 447.2 kB / 2.271 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002462/4.325, allocations: 2.202 MB / 2.274 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/4.33, allocations: 435.1 kB / 2.274 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/4.33, allocations: 107.9 kB / 2.274 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/4.33, allocations: 7.953 kB / 2.274 GB, free: 5.879 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003543/4.334, allocations: 2.099 MB / 2.276 GB, free: 3.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/4.334, allocations: 12 kB / 2.276 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002794/4.337, allocations: 1.056 MB / 2.277 GB, free: 2.727 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002175/4.339, allocations: 431.3 kB / 2.278 GB, free: 2.305 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/4.341, allocations: 2.206 MB / 2.28 GB, free: 48 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4297/4.771, allocations: 377.2 kB / 2.28 GB, free: 84.37 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005486/4.772, allocations: 106.9 kB / 2.28 GB, free: 84.37 MB / 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 (148): * Single equations (assignments): 145 * 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 24,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.0007437/4.772, allocations: 215 kB / 2.28 GB, free: 84.26 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/4.773, allocations: 287.7 kB / 2.281 GB, free: 84.26 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005751/4.779, allocations: 1.765 MB / 2.282 GB, free: 84.18 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.954e-05/4.779, allocations: 17.84 kB / 2.282 GB, free: 84.18 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/4.779, allocations: 5.219 kB / 2.282 GB, free: 84.18 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004244/4.784, allocations: 1.53 MB / 2.284 GB, free: 83.89 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00962/4.793, allocations: 6.439 MB / 2.29 GB, free: 82 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/4.793, allocations: 8.812 kB / 2.29 GB, free: 82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/4.795, allocations: 274.5 kB / 2.29 GB, free: 82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/4.797, allocations: 0.8896 MB / 2.291 GB, free: 81.98 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/4.797, allocations: 47.3 kB / 2.291 GB, free: 81.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/4.799, allocations: 1.969 MB / 2.293 GB, free: 80.94 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/4.799, allocations: 11.81 kB / 2.293 GB, free: 80.94 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005387/4.804, allocations: 3.432 MB / 2.297 GB, free: 79.69 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/4.806, allocations: 0.6605 MB / 2.297 GB, free: 79.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/4.806, allocations: 38.81 kB / 2.297 GB, free: 79.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/4.809, allocations: 289.2 kB / 2.298 GB, free: 79.51 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/4.809, allocations: 112.3 kB / 2.298 GB, free: 79.5 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/4.81, allocations: 70.66 kB / 2.298 GB, free: 79.5 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.00233/4.812, allocations: 1.814 MB / 2.3 GB, free: 79.34 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/4.812, allocations: 2.344 kB / 2.3 GB, free: 79.34 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.004256/4.816, allocations: 1.651 MB / 2.301 GB, free: 79.34 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 (76): * Single equations (assignments): 70 * 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 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.007675/4.824, allocations: 6.839 MB / 2.308 GB, free: 75.93 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.004588/4.828, allocations: 2.85 MB / 2.311 GB, free: 75.75 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/4.828, allocations: 7.25 kB / 2.311 GB, free: 75.75 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/4.83, allocations: 0.8046 MB / 2.311 GB, free: 75.73 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006468/4.836, allocations: 1.495 MB / 2.313 GB, free: 75.72 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008588/4.845, allocations: 4.355 MB / 2.317 GB, free: 74.56 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/4.846, allocations: 1.775 MB / 2.319 GB, free: 73.82 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003979/4.85, allocations: 0.8372 MB / 2.32 GB, free: 73.79 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/4.851, allocations: 1.127 MB / 2.321 GB, free: 73.79 MB / 0.7448 GB Notification: Performance of SimCode: time 6.41e-07/4.851, allocations: 0 / 2.321 GB, free: 73.79 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1277/4.979, allocations: 110.9 MB / 2.429 GB, free: 68.16 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/4.979, allocations: 243.2 kB / 2.429 GB, free: 67.83 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.175/10.15, allocations: 1.859 kB / 2.429 GB, free: 67.83 MB / 0.7448 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1)