Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.325/2.325, allocations: 390.4 MB / 397.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 173.3 kB / 490.8 MB, free: 1.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.633/1.633, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 87.23 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7595/0.7607, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/1.064, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/2.209, allocations: 436.5 MB / 1.638 GB, free: 11.25 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/2.209, allocations: 87.27 kB / 1.638 GB, free: 11.21 MB / 1.057 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 4.246/6.456, allocations: 1.071 GB / 2.709 GB, free: 148 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/6.456, allocations: 9.875 kB / 2.709 GB, free: 148 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01034/6.466, allocations: 1.309 MB / 2.711 GB, free: 147.8 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/6.477, allocations: 3.352 MB / 2.714 GB, free: 147.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004082/6.478, allocations: 165 kB / 2.714 GB, free: 147.3 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/6.479, allocations: 141.6 kB / 2.714 GB, free: 147.3 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005556/6.484, allocations: 2 MB / 2.716 GB, free: 147.3 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00751/6.492, allocations: 2.516 MB / 2.719 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001431/6.492, allocations: 6.25 kB / 2.719 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000815/6.493, allocations: 9.594 kB / 2.719 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/6.493, allocations: 98.05 kB / 2.719 GB, free: 146.8 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02906/6.522, allocations: 13.96 MB / 2.732 GB, free: 140.4 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002131/6.524, allocations: 1.082 MB / 2.733 GB, free: 140.1 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/6.525, allocations: 0.5813 MB / 2.734 GB, free: 140.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001662/6.527, allocations: 1.774 MB / 2.736 GB, free: 138.2 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001598/6.529, allocations: 0.8971 MB / 2.737 GB, free: 137.9 MB / 1.198 GB Notification: Performance of pre-optimization done (n=118): time 7.123e-06/6.529, allocations: 0 / 2.737 GB, free: 137.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=122): time 0.02364/6.552, allocations: 10.03 MB / 2.746 GB, free: 131.8 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002263/6.553, allocations: 0.9352 MB / 2.747 GB, free: 130.7 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002903/6.555, allocations: 1.846 MB / 2.749 GB, free: 130.5 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003376/6.556, allocations: 37.08 kB / 2.749 GB, free: 130.5 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009018/6.557, allocations: 0.985 MB / 2.75 GB, free: 129.9 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000473/6.557, allocations: 412.4 kB / 2.75 GB, free: 129.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/6.557, allocations: 0 / 2.75 GB, free: 129.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.000106/6.557, allocations: 368.9 kB / 2.751 GB, free: 129.3 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/6.558, allocations: 0.5778 MB / 2.751 GB, free: 129.3 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/6.56, allocations: 1.205 MB / 2.753 GB, free: 128.6 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/6.562, allocations: 0.8034 MB / 2.753 GB, free: 128.6 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/6.562, allocations: 3.844 kB / 2.753 GB, free: 128.6 MB / 1.198 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.00524/6.567, allocations: 2.184 MB / 2.755 GB, free: 128.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001014/6.568, allocations: 5.091 MB / 2.76 GB, free: 123 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/6.568, allocations: 10.88 kB / 2.76 GB, free: 123 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/6.57, allocations: 0.7106 MB / 2.761 GB, free: 123 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002713/6.573, allocations: 469.8 kB / 2.762 GB, free: 123 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003925/6.577, allocations: 2.369 MB / 2.764 GB, free: 121.9 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005592/6.582, allocations: 392 kB / 2.764 GB, free: 121.9 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003582/6.583, allocations: 109.4 kB / 2.764 GB, free: 121.9 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/6.583, allocations: 2.906 kB / 2.764 GB, free: 121.9 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004472/6.587, allocations: 1.896 MB / 2.766 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/6.587, allocations: 15.23 kB / 2.766 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/6.589, allocations: 0.713 MB / 2.767 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/6.591, allocations: 451 kB / 2.767 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003728/6.595, allocations: 2.363 MB / 2.77 GB, free: 120.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004957/6.6, allocations: 322.8 kB / 2.77 GB, free: 120.7 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003459/6.601, allocations: 99.52 kB / 2.77 GB, free: 120.7 MB / 1.198 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.0006972/6.601, allocations: 154.8 kB / 2.77 GB, free: 120.6 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007124/6.602, allocations: 250.1 kB / 2.77 GB, free: 120.5 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005449/6.607, allocations: 1.704 MB / 2.772 GB, free: 120.4 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/6.607, allocations: 19.16 kB / 2.772 GB, free: 120.4 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/6.608, allocations: 10.38 kB / 2.772 GB, free: 120.4 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003988/6.612, allocations: 1.51 MB / 2.774 GB, free: 120.1 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/6.624, allocations: 6.018 MB / 2.779 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/6.625, allocations: 6.625 kB / 2.779 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/6.627, allocations: 286.6 kB / 2.78 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/6.628, allocations: 0.6131 MB / 2.78 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/6.628, allocations: 32.22 kB / 2.78 GB, free: 118.2 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003779/6.632, allocations: 2.106 MB / 2.782 GB, free: 117.1 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/6.632, allocations: 10.59 kB / 2.782 GB, free: 117.1 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00731/6.639, allocations: 3.155 MB / 2.786 GB, free: 115.9 MB / 1.198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007655/6.647, allocations: 4.412 MB / 2.79 GB, free: 114.4 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001934/6.649, allocations: 0.6048 MB / 2.79 GB, free: 114.1 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005559/6.649, allocations: 24.02 kB / 2.79 GB, free: 114.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/6.653, allocations: 259.5 kB / 2.791 GB, free: 114.1 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/6.653, allocations: 108.8 kB / 2.791 GB, free: 114.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/6.653, allocations: 72.42 kB / 2.791 GB, free: 114.1 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.002129/6.655, allocations: 1.38 MB / 2.792 GB, free: 114 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.008276/6.664, allocations: 2.086 MB / 2.794 GB, free: 113.9 MB / 1.198 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.003199/6.667, allocations: 1.49 MB / 2.796 GB, free: 113.5 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.00675/6.674, allocations: 2.764 MB / 2.798 GB, free: 113.4 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/6.674, allocations: 4.594 kB / 2.798 GB, free: 113.4 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.002231/6.676, allocations: 0.8536 MB / 2.799 GB, free: 113.3 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006308/6.682, allocations: 1.047 MB / 2.8 GB, free: 113.3 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/6.695, allocations: 3.967 MB / 2.804 GB, free: 112.2 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002477/6.697, allocations: 2.045 MB / 2.806 GB, free: 111.5 MB / 1.198 GB Notification: Performance of SimCode: time 2.285e-06/6.697, allocations: 0 / 2.806 GB, free: 111.5 MB / 1.198 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)