Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_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.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.555/1.555, allocations: 289.8 MB / 297 MB, free: 12.63 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 182.4 kB / 366.3 MB, free: 11.93 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.1 MB / 0.6256 GB, free: 2.016 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009347/0.0009347, allocations: 92.61 kB / 0.7395 GB, free: 47.07 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.273/0.2739, allocations: 122.4 MB / 0.8591 GB, free: 7.09 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7335/1.007, allocations: 116.3 MB / 0.9726 GB, free: 81.43 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.983/1.991, allocations: 424.1 MB / 1.387 GB, free: 150.3 MB / 0.8621 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/1.991, allocations: 87.27 kB / 1.387 GB, free: 150.3 MB / 0.8621 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 3.988/5.979, allocations: 1.047 GB / 2.433 GB, free: 102.1 MB / 0.9559 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/5.979, allocations: 11.69 kB / 2.433 GB, free: 102.1 MB / 0.9559 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/5.99, allocations: 1.307 MB / 2.435 GB, free: 101.9 MB / 0.9559 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/6.001, allocations: 3.314 MB / 2.438 GB, free: 101.4 MB / 0.9559 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005892/6.001, allocations: 166.8 kB / 2.438 GB, free: 101.3 MB / 0.9559 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/6.003, allocations: 143.3 kB / 2.438 GB, free: 101.3 MB / 0.9559 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006706/6.01, allocations: 2.001 MB / 2.44 GB, free: 101.3 MB / 0.9559 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00492/6.015, allocations: 2.497 MB / 2.443 GB, free: 100.8 MB / 0.9559 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.077e-05/6.015, allocations: 15.72 kB / 2.443 GB, free: 100.8 MB / 0.9559 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/6.015, allocations: 7.438 kB / 2.443 GB, free: 100.8 MB / 0.9559 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.263e-05/6.015, allocations: 68.84 kB / 2.443 GB, free: 100.8 MB / 0.9559 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02562/6.041, allocations: 13.97 MB / 2.456 GB, free: 94.32 MB / 0.9559 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/6.043, allocations: 1.082 MB / 2.457 GB, free: 94.11 MB / 0.9559 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008265/6.043, allocations: 0.575 MB / 2.458 GB, free: 94.09 MB / 0.9559 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001601/6.045, allocations: 1.781 MB / 2.46 GB, free: 92.12 MB / 0.9559 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/6.046, allocations: 0.8941 MB / 2.461 GB, free: 91.83 MB / 0.9559 GB Notification: Performance of pre-optimization done (n=118): time 4.729e-06/6.046, allocations: 2.719 kB / 2.461 GB, free: 91.83 MB / 0.9559 GB Notification: Performance of matching and sorting (n=122): time 0.01874/6.065, allocations: 10.03 MB / 2.47 GB, free: 85.81 MB / 0.9559 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002653/6.065, allocations: 0.9371 MB / 2.471 GB, free: 84.68 MB / 0.9559 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/6.068, allocations: 1.838 MB / 2.473 GB, free: 84.46 MB / 0.9559 GB Notification: Performance of collectPreVariables (initialization): time 0.0002896/6.069, allocations: 34.55 kB / 2.473 GB, free: 84.43 MB / 0.9559 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009439/6.07, allocations: 0.9815 MB / 2.474 GB, free: 83.87 MB / 0.9559 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004613/6.07, allocations: 409 kB / 2.475 GB, free: 83.61 MB / 0.9559 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/6.07, allocations: 0 / 2.475 GB, free: 83.61 MB / 0.9559 GB Notification: Performance of setup shared object (initialization): time 0.0001309/6.07, allocations: 365.9 kB / 2.475 GB, free: 83.3 MB / 0.9559 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/6.071, allocations: 0.5848 MB / 2.475 GB, free: 83.3 MB / 0.9559 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/6.073, allocations: 1.199 MB / 2.477 GB, free: 82.62 MB / 0.9559 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002463/6.075, allocations: 0.8066 MB / 2.477 GB, free: 82.59 MB / 0.9559 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/6.075, allocations: 3.531 kB / 2.477 GB, free: 82.59 MB / 0.9559 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005162/6.08, allocations: 2.186 MB / 2.48 GB, free: 82.4 MB / 0.9559 GB Notification: Performance of prepare postOptimizeDAE: time 0.001159/6.082, allocations: 5.09 MB / 2.485 GB, free: 76.95 MB / 0.9559 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/6.082, allocations: 10.72 kB / 2.485 GB, free: 76.95 MB / 0.9559 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/6.083, allocations: 0.7127 MB / 2.485 GB, free: 76.93 MB / 0.9559 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/6.086, allocations: 476.4 kB / 2.486 GB, free: 76.93 MB / 0.9559 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003824/6.09, allocations: 2.369 MB / 2.488 GB, free: 75.86 MB / 0.9559 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005233/6.095, allocations: 387.5 kB / 2.488 GB, free: 75.84 MB / 0.9559 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/6.095, allocations: 110.4 kB / 2.488 GB, free: 75.84 MB / 0.9559 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/6.095, allocations: 3.531 kB / 2.488 GB, free: 75.84 MB / 0.9559 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004488/6.1, allocations: 1.896 MB / 2.49 GB, free: 75.79 MB / 0.9559 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/6.1, allocations: 15.38 kB / 2.49 GB, free: 75.79 MB / 0.9559 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001538/6.101, allocations: 0.7062 MB / 2.491 GB, free: 75.78 MB / 0.9559 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/6.104, allocations: 450.5 kB / 2.491 GB, free: 75.78 MB / 0.9559 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003882/6.108, allocations: 2.374 MB / 2.494 GB, free: 74.7 MB / 0.9559 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/6.113, allocations: 316.5 kB / 2.494 GB, free: 74.68 MB / 0.9559 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/6.113, allocations: 107.5 kB / 2.494 GB, free: 74.68 MB / 0.9559 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 (152): * Single equations (assignments): 149 * 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 22,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.0007101/6.114, allocations: 161.9 kB / 2.494 GB, free: 74.57 MB / 0.9559 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005515/6.115, allocations: 243.7 kB / 2.495 GB, free: 74.45 MB / 0.9559 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005192/6.12, allocations: 1.706 MB / 2.496 GB, free: 74.34 MB / 0.9559 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/6.12, allocations: 18.59 kB / 2.496 GB, free: 74.34 MB / 0.9559 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/6.12, allocations: 9.844 kB / 2.496 GB, free: 74.34 MB / 0.9559 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003744/6.124, allocations: 1.514 MB / 2.498 GB, free: 74.04 MB / 0.9559 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/6.136, allocations: 6.007 MB / 2.504 GB, free: 72.16 MB / 0.9559 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/6.136, allocations: 9.625 kB / 2.504 GB, free: 72.16 MB / 0.9559 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00188/6.138, allocations: 291.4 kB / 2.504 GB, free: 72.16 MB / 0.9559 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/6.139, allocations: 0.5965 MB / 2.504 GB, free: 72.14 MB / 0.9559 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/6.139, allocations: 31.58 kB / 2.505 GB, free: 72.14 MB / 0.9559 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/6.143, allocations: 2.108 MB / 2.507 GB, free: 71.07 MB / 0.9559 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/6.143, allocations: 16.81 kB / 2.507 GB, free: 71.07 MB / 0.9559 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006548/6.149, allocations: 3.153 MB / 2.51 GB, free: 69.9 MB / 0.9559 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008054/6.158, allocations: 4.399 MB / 2.514 GB, free: 68.35 MB / 0.9559 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002184/6.16, allocations: 0.6136 MB / 2.515 GB, free: 68.13 MB / 0.9559 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/6.161, allocations: 15.62 kB / 2.515 GB, free: 68.13 MB / 0.9559 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004121/6.165, allocations: 258.3 kB / 2.515 GB, free: 68.12 MB / 0.9559 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/6.165, allocations: 112.2 kB / 2.515 GB, free: 68.11 MB / 0.9559 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/6.166, allocations: 76.23 kB / 2.515 GB, free: 68.11 MB / 0.9559 GB Notification: Performance of sort global known variables: time 0.00332/6.169, allocations: 1.374 MB / 2.516 GB, free: 67.97 MB / 0.9559 GB Notification: Performance of remove unused functions: time 0.01088/6.18, allocations: 2.098 MB / 2.518 GB, free: 67.85 MB / 0.9559 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 (80): * Single equations (assignments): 74 * 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 17,5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.003969/6.184, allocations: 1.485 MB / 2.52 GB, free: 67.45 MB / 0.9559 GB Notification: Performance of simCode: created initialization part: time 0.007504/6.191, allocations: 2.757 MB / 2.523 GB, free: 67.32 MB / 0.9559 GB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/6.191, allocations: 7.219 kB / 2.523 GB, free: 67.32 MB / 0.9559 GB Notification: Performance of simCode: created simulation system equations: time 0.002425/6.194, allocations: 0.8609 MB / 2.523 GB, free: 67.31 MB / 0.9559 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006839/6.201, allocations: 1.057 MB / 2.524 GB, free: 67.29 MB / 0.9559 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/6.216, allocations: 3.953 MB / 2.528 GB, free: 66.22 MB / 0.9559 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003403/6.219, allocations: 2.043 MB / 2.53 GB, free: 65.48 MB / 0.9559 GB Notification: Performance of SimCode: time 1.212e-06/6.219, allocations: 0 / 2.53 GB, free: 65.48 MB / 0.9559 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)