Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.703/2.703, allocations: 284.8 MB / 292.1 MB, free: 10.7 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.001647/0.001647, allocations: 181.3 kB / 360.3 MB, free: 7.516 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.913/1.913, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001286/0.001286, allocations: 97.83 kB / 0.7317 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3001/0.3015, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.662/0.9635, allocations: 115.2 MB / 0.9627 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.981, allocations: 423 MB / 1.376 GB, free: 145.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/1.982, allocations: 93.62 kB / 1.376 GB, free: 145.5 MB / 0.8542 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 5.291/7.272, allocations: 1.047 GB / 2.422 GB, free: 101.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/7.272, allocations: 10.91 kB / 2.422 GB, free: 101.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01871/7.291, allocations: 1.307 MB / 2.424 GB, free: 101.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/7.304, allocations: 3.312 MB / 2.427 GB, free: 100.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003741/7.305, allocations: 173.3 kB / 2.427 GB, free: 100.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/7.306, allocations: 137.1 kB / 2.427 GB, free: 100.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008229/7.314, allocations: 2.003 MB / 2.429 GB, free: 100.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01353/7.328, allocations: 2.497 MB / 2.432 GB, free: 100.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/7.328, allocations: 17.41 kB / 2.432 GB, free: 100.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001357/7.329, allocations: 5.969 kB / 2.432 GB, free: 100.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002076/7.33, allocations: 73.61 kB / 2.432 GB, free: 100.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04483/7.375, allocations: 13.98 MB / 2.445 GB, free: 93.76 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/7.378, allocations: 1.079 MB / 2.446 GB, free: 93.54 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001697/7.379, allocations: 0.5748 MB / 2.447 GB, free: 93.54 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002511/7.382, allocations: 1.787 MB / 2.449 GB, free: 91.57 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002893/7.385, allocations: 0.9021 MB / 2.45 GB, free: 91.28 MB / 0.948 GB Notification: Performance of pre-optimization done (n=118): time 1.191e-05/7.385, allocations: 0 / 2.45 GB, free: 91.28 MB / 0.948 GB Notification: Performance of matching and sorting (n=122): time 0.04672/7.432, allocations: 10.02 MB / 2.459 GB, free: 85.25 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003816/7.432, allocations: 0.9375 MB / 2.46 GB, free: 84.12 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005364/7.438, allocations: 1.838 MB / 2.462 GB, free: 83.91 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005437/7.438, allocations: 32.8 kB / 2.462 GB, free: 83.88 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001367/7.44, allocations: 0.9832 MB / 2.463 GB, free: 83.31 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008258/7.44, allocations: 412 kB / 2.464 GB, free: 83.05 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/7.441, allocations: 3.5 kB / 2.464 GB, free: 83.05 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001387/7.441, allocations: 365.8 kB / 2.464 GB, free: 82.74 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/7.443, allocations: 0.5846 MB / 2.464 GB, free: 82.74 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002748/7.446, allocations: 1.195 MB / 2.466 GB, free: 82.05 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004003/7.45, allocations: 0.8105 MB / 2.466 GB, free: 82.03 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.045e-05/7.45, allocations: 2.875 kB / 2.466 GB, free: 82.03 MB / 0.948 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.009731/7.46, allocations: 2.19 MB / 2.469 GB, free: 81.83 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00117/7.461, allocations: 5.084 MB / 2.474 GB, free: 76.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.405e-05/7.461, allocations: 14.47 kB / 2.474 GB, free: 76.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/7.464, allocations: 0.7137 MB / 2.474 GB, free: 76.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00553/7.47, allocations: 468.5 kB / 2.475 GB, free: 76.38 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/7.477, allocations: 2.368 MB / 2.477 GB, free: 75.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009312/7.486, allocations: 386.6 kB / 2.477 GB, free: 75.28 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005983/7.487, allocations: 112.5 kB / 2.477 GB, free: 75.28 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/7.487, allocations: 9.094 kB / 2.477 GB, free: 75.28 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007923/7.495, allocations: 1.888 MB / 2.479 GB, free: 75.23 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.005e-05/7.495, allocations: 14.81 kB / 2.479 GB, free: 75.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/7.498, allocations: 0.7235 MB / 2.48 GB, free: 75.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005227/7.503, allocations: 459.3 kB / 2.48 GB, free: 75.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00676/7.51, allocations: 2.357 MB / 2.483 GB, free: 74.13 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008098/7.518, allocations: 324 kB / 2.483 GB, free: 74.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005725/7.518, allocations: 101.6 kB / 2.483 GB, free: 74.12 MB / 0.948 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.0007678/7.519, allocations: 166.4 kB / 2.483 GB, free: 74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009107/7.52, allocations: 237.1 kB / 2.484 GB, free: 73.88 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00903/7.529, allocations: 1.715 MB / 2.485 GB, free: 73.77 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-05/7.529, allocations: 18.12 kB / 2.485 GB, free: 73.77 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/7.529, allocations: 3.969 kB / 2.485 GB, free: 73.77 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00717/7.537, allocations: 1.508 MB / 2.487 GB, free: 73.48 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02167/7.558, allocations: 6.017 MB / 2.493 GB, free: 71.59 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/7.558, allocations: 5.719 kB / 2.493 GB, free: 71.59 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003642/7.562, allocations: 288.5 kB / 2.493 GB, free: 71.59 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002304/7.564, allocations: 0.5991 MB / 2.493 GB, free: 71.57 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/7.565, allocations: 36.45 kB / 2.494 GB, free: 71.57 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/7.571, allocations: 2.113 MB / 2.496 GB, free: 70.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.682e-05/7.571, allocations: 10.94 kB / 2.496 GB, free: 70.5 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009801/7.58, allocations: 3.152 MB / 2.499 GB, free: 69.34 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0118/7.592, allocations: 4.399 MB / 2.503 GB, free: 67.78 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/7.595, allocations: 0.6111 MB / 2.504 GB, free: 67.57 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007696/7.595, allocations: 16.89 kB / 2.504 GB, free: 67.57 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006429/7.602, allocations: 262.6 kB / 2.504 GB, free: 67.55 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/7.602, allocations: 104.2 kB / 2.504 GB, free: 67.55 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/7.602, allocations: 73.77 kB / 2.504 GB, free: 67.55 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003362/7.606, allocations: 1.374 MB / 2.505 GB, free: 67.41 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01291/7.619, allocations: 2.09 MB / 2.507 GB, free: 67.29 MB / 0.948 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.004056/7.623, allocations: 1.502 MB / 2.509 GB, free: 66.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01075/7.634, allocations: 2.764 MB / 2.512 GB, free: 66.77 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/7.634, allocations: 3.156 kB / 2.512 GB, free: 66.76 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003938/7.638, allocations: 0.8546 MB / 2.512 GB, free: 66.75 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009592/7.647, allocations: 1.051 MB / 2.513 GB, free: 66.73 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0196/7.667, allocations: 3.947 MB / 2.517 GB, free: 65.66 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003935/7.671, allocations: 2.055 MB / 2.519 GB, free: 64.91 MB / 0.948 GB Notification: Performance of SimCode: time 1.633e-06/7.671, allocations: 0 / 2.519 GB, free: 64.91 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > Buildings_8.0.0_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)