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.8627/0.8627, allocations: 141.8 MB / 149.3 MB, free: 9.215 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.001071/0.001071, allocations: 184.8 kB / 182.2 MB, free: 9.438 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.718/1.718, allocations: 221.5 MB / 436.4 MB, free: 13.32 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.0009614/0.0009614, allocations: 100 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001846/0.001846, allocations: 273.9 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.119e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4918/0.4919, allocations: 82.77 MB / 0.7575 GB, free: 31.98 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9233/1.415, allocations: 395.5 MB / 1.144 GB, free: 1.992 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/1.416, allocations: 89.44 kB / 1.144 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.948/5.364, allocations: 1.057 GB / 2.201 GB, free: 48.6 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.044e-06/5.364, allocations: 0 / 2.201 GB, free: 48.6 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003369/5.364, allocations: 75.98 kB / 2.201 GB, free: 48.52 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.008888/5.373, allocations: 3.182 MB / 2.204 GB, free: 45.25 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/5.373, allocations: 8.031 kB / 2.204 GB, free: 45.24 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/5.386, allocations: 1.315 MB / 2.205 GB, free: 43.92 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009709/5.396, allocations: 3.278 MB / 2.208 GB, free: 40.57 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/5.396, allocations: 171.9 kB / 2.209 GB, free: 40.39 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005469/5.397, allocations: 147.5 kB / 2.209 GB, free: 40.25 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005272/5.402, allocations: 2.012 MB / 2.211 GB, free: 38.23 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005286/5.407, allocations: 2.504 MB / 2.213 GB, free: 35.53 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.576e-05/5.407, allocations: 3.938 kB / 2.213 GB, free: 35.52 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003396/5.408, allocations: 8 kB / 2.213 GB, free: 35.52 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-05/5.408, allocations: 71.92 kB / 2.213 GB, free: 35.45 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.02287/5.431, allocations: 12.98 MB / 2.226 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002059/5.433, allocations: 1.174 MB / 2.227 GB, free: 20.72 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/5.434, allocations: 0.6053 MB / 2.228 GB, free: 20.12 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001772/5.436, allocations: 1.774 MB / 2.229 GB, free: 17.96 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001764/5.437, allocations: 0.9473 MB / 2.23 GB, free: 16.91 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=118): time 4.649e-06/5.437, allocations: 0 / 2.23 GB, free: 16.91 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122): time 0.03055/5.468, allocations: 10.53 MB / 2.241 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002581/5.468, allocations: 0.9477 MB / 2.241 GB, free: 5.02 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003831/5.472, allocations: 1.828 MB / 2.243 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0005954/5.473, allocations: 33.7 kB / 2.243 GB, free: 3.137 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001397/5.474, allocations: 1.386 MB / 2.245 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006258/5.475, allocations: 406 kB / 2.245 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/5.475, allocations: 4 kB / 2.245 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001191/5.475, allocations: 369.9 kB / 2.245 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/5.476, allocations: 0.6014 MB / 2.246 GB, free: 368 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002163/5.479, allocations: 1.224 MB / 2.247 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005568/5.484, allocations: 0.9649 MB / 2.248 GB, free: 13.91 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/5.484, allocations: 4 kB / 2.248 GB, free: 13.91 MB / 0.7292 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.0101/5.494, allocations: 2.393 MB / 2.25 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.002495/5.497, allocations: 5.135 MB / 2.255 GB, free: 5.832 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/5.497, allocations: 12 kB / 2.255 GB, free: 5.82 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/5.5, allocations: 0.8995 MB / 2.256 GB, free: 4.941 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/5.503, allocations: 443.2 kB / 2.257 GB, free: 4.508 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00513/5.508, allocations: 2.319 MB / 2.259 GB, free: 2.137 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006983/5.515, allocations: 375.1 kB / 2.259 GB, free: 1.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000715/5.516, allocations: 108 kB / 2.26 GB, free: 1.664 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/5.516, allocations: 4 kB / 2.26 GB, free: 1.66 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5363/6.052, allocations: 2.115 MB / 2.262 GB, free: 74.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.496e-05/6.053, allocations: 12.44 kB / 2.262 GB, free: 74.41 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/6.055, allocations: 0.8828 MB / 2.262 GB, free: 74.39 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/6.058, allocations: 438.3 kB / 2.263 GB, free: 74.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/6.061, allocations: 2.323 MB / 2.265 GB, free: 73.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004629/6.066, allocations: 314.8 kB / 2.265 GB, free: 73.35 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004241/6.066, allocations: 108.6 kB / 2.266 GB, free: 73.35 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 (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.000614/6.067, allocations: 163.6 kB / 2.266 GB, free: 73.25 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01378/6.08, allocations: 2.447 MB / 2.268 GB, free: 73.19 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009366/6.081, allocations: 245.4 kB / 2.268 GB, free: 73.19 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006798/6.088, allocations: 1.882 MB / 2.27 GB, free: 73.08 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/6.088, allocations: 15.06 kB / 2.27 GB, free: 73.08 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/6.088, allocations: 3.656 kB / 2.27 GB, free: 73.08 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005725/6.094, allocations: 1.706 MB / 2.272 GB, free: 72.79 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0116/6.106, allocations: 6.266 MB / 2.278 GB, free: 70.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/6.106, allocations: 4.75 kB / 2.278 GB, free: 70.91 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/6.107, allocations: 273.3 kB / 2.278 GB, free: 70.91 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/6.109, allocations: 0.7735 MB / 2.279 GB, free: 70.89 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/6.109, allocations: 35.53 kB / 2.279 GB, free: 70.89 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/6.111, allocations: 2.077 MB / 2.281 GB, free: 69.84 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/6.111, allocations: 8.875 kB / 2.281 GB, free: 69.84 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008027/6.12, allocations: 3.413 MB / 2.284 GB, free: 68.75 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/6.121, allocations: 0.6189 MB / 2.285 GB, free: 68.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004082/6.121, allocations: 16.78 kB / 2.285 GB, free: 68.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003125/6.124, allocations: 259.3 kB / 2.285 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/6.125, allocations: 110.3 kB / 2.285 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/6.125, allocations: 70.98 kB / 2.285 GB, free: 68.52 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.002175/6.127, allocations: 1.373 MB / 2.287 GB, free: 68.38 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.5e-07/6.127, allocations: 2.531 kB / 2.287 GB, free: 68.38 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.006325/6.133, allocations: 1.571 MB / 2.288 GB, free: 68.38 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 (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.01106/6.144, allocations: 6.946 MB / 2.295 GB, free: 64.97 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00527/6.15, allocations: 2.685 MB / 2.298 GB, free: 64.78 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-05/6.15, allocations: 4.438 kB / 2.298 GB, free: 64.78 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001695/6.152, allocations: 0.7655 MB / 2.298 GB, free: 64.77 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00771/6.159, allocations: 1.085 MB / 2.3 GB, free: 64.76 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/6.17, allocations: 4.152 MB / 2.304 GB, free: 63.59 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/6.172, allocations: 1.766 MB / 2.305 GB, free: 62.86 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.003976/6.176, allocations: 0.7209 MB / 2.306 GB, free: 62.84 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/6.177, allocations: 1.1 MB / 2.307 GB, free: 62.84 MB / 0.7292 GB Notification: Performance of SimCode: time 1.102e-06/6.177, allocations: 0 / 2.307 GB, free: 62.84 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/6.342, allocations: 89.13 MB / 2.394 GB, free: 57.76 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/6.342, allocations: 196.8 kB / 2.394 GB, free: 57.57 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.32/11.66, allocations: 0 / 2.394 GB, free: 57.57 MB / 0.7292 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)