Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.805/1.805, allocations: 289.7 MB / 302.2 MB, free: 2.141 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 181 kB / 371.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.1 MB / 0.6309 GB, free: 11.8 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001001/0.001002, allocations: 88.66 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 6.5e-05/6.527e-05, allocations: 4 kB / 0.8663 GB, free: 14.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3094, allocations: 116.3 MB / 0.9799 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.763/2.072, allocations: 425.3 MB / 1.395 GB, free: 296 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003451/2.073, allocations: 94.25 kB / 1.395 GB, free: 296 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.383/5.455, allocations: 1.042 GB / 2.438 GB, free: 24.55 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.104e-06/5.455, allocations: 0 / 2.438 GB, free: 24.55 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0005428/5.456, allocations: 79.97 kB / 2.438 GB, free: 24.47 MB / 0.948 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.009645/5.465, allocations: 3.203 MB / 2.441 GB, free: 21.18 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/5.466, allocations: 15.91 kB / 2.441 GB, free: 21.16 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006978/5.466, allocations: 316.7 kB / 2.441 GB, free: 20.84 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009707/5.476, allocations: 1.319 MB / 2.442 GB, free: 19.52 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007832/5.484, allocations: 3.286 MB / 2.446 GB, free: 16.15 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/5.484, allocations: 259.9 kB / 2.446 GB, free: 15.88 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004498/5.484, allocations: 235.9 kB / 2.446 GB, free: 15.65 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004552/5.489, allocations: 2.829 MB / 2.449 GB, free: 12.62 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.756e-05/5.489, allocations: 11.92 kB / 2.449 GB, free: 12.61 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/5.489, allocations: 104 kB / 2.449 GB, free: 12.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.105e-05/5.489, allocations: 67.94 kB / 2.449 GB, free: 12.44 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003406/5.493, allocations: 2.172 MB / 2.451 GB, free: 10.25 MB / 0.948 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.01922/5.512, allocations: 13.51 MB / 2.464 GB, free: 12.15 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/5.514, allocations: 1.221 MB / 2.465 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/5.515, allocations: 0.6351 MB / 2.466 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001942/5.517, allocations: 1.777 MB / 2.468 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001632/5.519, allocations: 0.9881 MB / 2.469 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=118): time 3.206e-06/5.519, allocations: 0 / 2.469 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of matching and sorting (n=122): time 0.01847/5.537, allocations: 10.11 MB / 2.479 GB, free: 12.69 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005358/5.538, allocations: 0.9396 MB / 2.48 GB, free: 11.53 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/5.542, allocations: 2.338 MB / 2.482 GB, free: 9.176 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0003925/5.542, allocations: 57.7 kB / 2.482 GB, free: 9.113 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001361/5.544, allocations: 1.356 MB / 2.483 GB, free: 7.746 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005756/5.544, allocations: 426 kB / 2.484 GB, free: 7.324 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/5.545, allocations: 32 kB / 2.484 GB, free: 7.293 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001869/5.545, allocations: 365.9 kB / 2.484 GB, free: 6.93 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/5.546, allocations: 0.6327 MB / 2.485 GB, free: 6.297 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001809/5.548, allocations: 1.271 MB / 2.486 GB, free: 4.766 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/5.549, allocations: 0.7779 MB / 2.487 GB, free: 3.984 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/5.549, allocations: 4 kB / 2.487 GB, free: 3.98 MB / 0.9792 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005133/5.554, allocations: 2.376 MB / 2.489 GB, free: 1.582 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.6693/6.224, allocations: 5.245 MB / 2.494 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/6.224, allocations: 12.84 kB / 2.494 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003591/6.227, allocations: 1.043 MB / 2.495 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002643/6.23, allocations: 448 kB / 2.496 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/6.233, allocations: 2.209 MB / 2.498 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005836/6.239, allocations: 442.4 kB / 2.498 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005493/6.239, allocations: 107.1 kB / 2.498 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/6.239, allocations: 5.062 kB / 2.498 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004604/6.244, allocations: 2.088 MB / 2.5 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/6.244, allocations: 12.19 kB / 2.5 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003234/6.247, allocations: 1.053 MB / 2.501 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/6.25, allocations: 436.4 kB / 2.502 GB, free: 105.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002989/6.253, allocations: 2.197 MB / 2.504 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004745/6.257, allocations: 373 kB / 2.504 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/6.258, allocations: 105.8 kB / 2.504 GB, free: 104.6 MB / 0.9792 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.0005846/6.258, allocations: 230.9 kB / 2.505 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006913/6.259, allocations: 284.9 kB / 2.505 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005644/6.265, allocations: 1.768 MB / 2.507 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/6.265, allocations: 16.3 kB / 2.507 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/6.265, allocations: 7.219 kB / 2.507 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004356/6.269, allocations: 1.532 MB / 2.508 GB, free: 104.1 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/6.283, allocations: 6.43 MB / 2.514 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/6.283, allocations: 7.594 kB / 2.514 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/6.284, allocations: 273.9 kB / 2.515 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/6.287, allocations: 0.8905 MB / 2.516 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/6.287, allocations: 49.98 kB / 2.516 GB, free: 102.2 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/6.29, allocations: 1.971 MB / 2.517 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/6.29, allocations: 10.97 kB / 2.517 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006791/6.297, allocations: 3.424 MB / 2.521 GB, free: 99.89 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002404/6.299, allocations: 0.6666 MB / 2.521 GB, free: 99.67 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/6.3, allocations: 36.75 kB / 2.522 GB, free: 99.67 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004323/6.305, allocations: 293.4 kB / 2.522 GB, free: 99.66 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/6.305, allocations: 120.8 kB / 2.522 GB, free: 99.66 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002899/6.305, allocations: 68.59 kB / 2.522 GB, free: 99.66 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.004433/6.31, allocations: 1.815 MB / 2.524 GB, free: 99.5 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5.21e-07/6.31, allocations: 0 / 2.524 GB, free: 99.5 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.008676/6.318, allocations: 1.648 MB / 2.525 GB, free: 99.5 MB / 0.9792 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.01141/6.33, allocations: 6.844 MB / 2.532 GB, free: 96.07 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.006261/6.336, allocations: 2.848 MB / 2.535 GB, free: 95.89 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.182e-05/6.336, allocations: 8.969 kB / 2.535 GB, free: 95.89 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001789/6.338, allocations: 0.8117 MB / 2.536 GB, free: 95.87 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00871/6.347, allocations: 1.497 MB / 2.537 GB, free: 95.84 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/6.36, allocations: 4.363 MB / 2.541 GB, free: 94.68 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001867/6.362, allocations: 1.766 MB / 2.543 GB, free: 93.94 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.005378/6.368, allocations: 0.8361 MB / 2.544 GB, free: 93.91 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/6.369, allocations: 1.125 MB / 2.545 GB, free: 93.91 MB / 0.9792 GB Notification: Performance of SimCode: time 7.91e-07/6.369, allocations: 0 / 2.545 GB, free: 93.91 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1882/6.558, allocations: 110.8 MB / 2.653 GB, free: 88.86 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/6.558, allocations: 236 kB / 2.653 GB, free: 88.59 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.466/13.02, allocations: 0 / 2.653 GB, free: 88.59 MB / 0.9792 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1)