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.765/1.765, allocations: 289.9 MB / 297.4 MB, free: 6.418 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.001094/0.001094, allocations: 172.8 kB / 366.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.2 MB / 0.626 GB, free: 7.168 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.0009064/0.000906, allocations: 85.89 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.44e-05/2.475e-05, allocations: 8 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7794/0.7795, allocations: 116.3 MB / 0.9733 GB, free: 76.21 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.2/1.98, allocations: 424.7 MB / 1.388 GB, free: 132.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/1.98, allocations: 87.33 kB / 1.388 GB, free: 132.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.813/5.793, allocations: 1.037 GB / 2.425 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.883e-06/5.793, allocations: 0 / 2.425 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0003177/5.793, allocations: 81.31 kB / 2.425 GB, free: 109.6 MB / 0.9636 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.007376/5.801, allocations: 3.183 MB / 2.428 GB, free: 108.3 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/5.801, allocations: 9.156 kB / 2.428 GB, free: 108.3 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01004/5.811, allocations: 1.323 MB / 2.43 GB, free: 108.1 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007562/5.818, allocations: 3.293 MB / 2.433 GB, free: 107.7 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/5.819, allocations: 174.8 kB / 2.433 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005211/5.819, allocations: 137.8 kB / 2.433 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004701/5.824, allocations: 2.016 MB / 2.435 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006352/5.83, allocations: 2.508 MB / 2.438 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.329e-05/5.83, allocations: 7.688 kB / 2.438 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003228/5.831, allocations: 7.062 kB / 2.438 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-05/5.831, allocations: 73.83 kB / 2.438 GB, free: 107.1 MB / 0.9636 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.02141/5.852, allocations: 12.98 MB / 2.45 GB, free: 101.3 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/5.854, allocations: 1.171 MB / 2.452 GB, free: 101.1 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007776/5.855, allocations: 0.6143 MB / 2.452 GB, free: 101.1 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001501/5.857, allocations: 1.774 MB / 2.454 GB, free: 99.14 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/5.858, allocations: 0.9409 MB / 2.455 GB, free: 98.85 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=118): time 3.667e-06/5.858, allocations: 0 / 2.455 GB, free: 98.85 MB / 0.9636 GB Notification: Performance of matching and sorting (n=122): time 0.02192/5.88, allocations: 10.56 MB / 2.465 GB, free: 92.82 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/5.88, allocations: 0.9344 MB / 2.466 GB, free: 91.7 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/5.883, allocations: 1.835 MB / 2.468 GB, free: 91.48 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.000336/5.883, allocations: 36.58 kB / 2.468 GB, free: 91.45 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001033/5.884, allocations: 1.379 MB / 2.469 GB, free: 90.89 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004056/5.885, allocations: 414.1 kB / 2.47 GB, free: 90.62 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/5.885, allocations: 3.188 kB / 2.47 GB, free: 90.62 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.712e-05/5.885, allocations: 371.5 kB / 2.47 GB, free: 90.32 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008951/5.886, allocations: 0.6061 MB / 2.471 GB, free: 90.32 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/5.887, allocations: 1.216 MB / 2.472 GB, free: 89.63 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003491/5.89, allocations: 0.9715 MB / 2.473 GB, free: 89.62 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/5.89, allocations: 3.812 kB / 2.473 GB, free: 89.62 MB / 0.9636 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006196/5.897, allocations: 2.392 MB / 2.475 GB, free: 89.43 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009005/5.897, allocations: 5.125 MB / 2.48 GB, free: 83.95 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/5.898, allocations: 10.84 kB / 2.48 GB, free: 83.95 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001766/5.899, allocations: 0.8915 MB / 2.481 GB, free: 83.93 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002304/5.902, allocations: 449.6 kB / 2.481 GB, free: 83.93 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002866/5.904, allocations: 2.322 MB / 2.484 GB, free: 82.85 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004923/5.909, allocations: 379.6 kB / 2.484 GB, free: 82.83 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/5.91, allocations: 107.7 kB / 2.484 GB, free: 82.83 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/5.91, allocations: 7 kB / 2.484 GB, free: 82.83 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005514/5.915, allocations: 2.12 MB / 2.486 GB, free: 82.78 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/5.915, allocations: 14.62 kB / 2.486 GB, free: 82.78 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/5.917, allocations: 0.8843 MB / 2.487 GB, free: 82.76 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/5.919, allocations: 433.2 kB / 2.487 GB, free: 82.76 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/5.922, allocations: 2.335 MB / 2.49 GB, free: 81.68 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004126/5.926, allocations: 315.4 kB / 2.49 GB, free: 81.66 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/5.926, allocations: 107.5 kB / 2.49 GB, free: 81.66 MB / 0.9636 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.0006762/5.927, allocations: 150.8 kB / 2.49 GB, free: 81.55 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01312/5.94, allocations: 2.458 MB / 2.493 GB, free: 81.34 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/5.941, allocations: 247.3 kB / 2.493 GB, free: 81.22 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006877/5.948, allocations: 1.884 MB / 2.495 GB, free: 81.09 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/5.948, allocations: 15.28 kB / 2.495 GB, free: 81.09 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/5.948, allocations: 9.234 kB / 2.495 GB, free: 81.09 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005567/5.954, allocations: 1.713 MB / 2.496 GB, free: 80.79 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/5.966, allocations: 6.259 MB / 2.503 GB, free: 78.88 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/5.966, allocations: 3.5 kB / 2.503 GB, free: 78.88 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/5.967, allocations: 272.9 kB / 2.503 GB, free: 78.88 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/5.969, allocations: 0.7752 MB / 2.504 GB, free: 78.85 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/5.969, allocations: 31.81 kB / 2.504 GB, free: 78.85 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002249/5.971, allocations: 2.069 MB / 2.506 GB, free: 77.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/5.971, allocations: 7.312 kB / 2.506 GB, free: 77.8 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008051/5.979, allocations: 3.417 MB / 2.509 GB, free: 76.6 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/5.981, allocations: 0.6126 MB / 2.51 GB, free: 76.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/5.982, allocations: 13.34 kB / 2.51 GB, free: 76.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003221/5.985, allocations: 268 kB / 2.51 GB, free: 76.37 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/5.985, allocations: 112.6 kB / 2.51 GB, free: 76.36 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/5.985, allocations: 75.19 kB / 2.51 GB, free: 76.36 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.002844/5.988, allocations: 1.372 MB / 2.511 GB, free: 76.22 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.375e-06/5.988, allocations: 0 / 2.511 GB, free: 76.22 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.009583/5.998, allocations: 1.564 MB / 2.513 GB, free: 76.1 MB / 0.9636 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.01167/6.01, allocations: 6.949 MB / 2.52 GB, free: 72.54 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.004941/6.015, allocations: 2.692 MB / 2.522 GB, free: 72.34 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/6.015, allocations: 0.7188 kB / 2.522 GB, free: 72.34 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001524/6.016, allocations: 0.7665 MB / 2.523 GB, free: 72.32 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006211/6.022, allocations: 1.089 MB / 2.524 GB, free: 72.31 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/6.034, allocations: 4.149 MB / 2.528 GB, free: 71.03 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/6.035, allocations: 1.777 MB / 2.53 GB, free: 70.29 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.004307/6.04, allocations: 0.7073 MB / 2.531 GB, free: 70.26 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001576/6.041, allocations: 1.108 MB / 2.532 GB, free: 70.25 MB / 0.9636 GB Notification: Performance of SimCode: time 1.062e-06/6.041, allocations: 0 / 2.532 GB, free: 70.25 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.137/6.178, allocations: 89.09 MB / 2.619 GB, free: 64.96 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/6.179, allocations: 178.8 kB / 2.619 GB, free: 64.77 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.564/11.74, allocations: 0 / 2.619 GB, free: 64.77 MB / 0.9636 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)