Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",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/BuildingSystems 2.0.0-master/package.mo): time 0.7415/0.7415, allocations: 141.8 MB / 149.1 MB, free: 9.5 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.00105, allocations: 184.1 kB / 181.9 MB, free: 6.57 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.201/1.201, allocations: 221.4 MB / 436 MB, free: 14.61 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008542/0.0008542, allocations: 94.72 kB / 0.507 GB, free: 7.852 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001736/0.001736, allocations: 279.7 kB / 0.5884 GB, free: 4.656 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3376/0.3393, allocations: 89.63 MB / 0.676 GB, free: 166.1 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.477, allocations: 82.78 MB / 0.7568 GB, free: 113.2 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6178/1.095, allocations: 393.9 MB / 1.142 GB, free: 11.91 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/1.095, allocations: 88.55 kB / 1.142 GB, free: 11.87 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 1.686/2.781, allocations: 0.5604 GB / 1.702 GB, free: 4.715 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/2.781, allocations: 8 kB / 1.702 GB, free: 4.707 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/2.786, allocations: 0.6612 MB / 1.703 GB, free: 4.043 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004148/2.79, allocations: 1.796 MB / 1.704 GB, free: 2.191 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/2.791, allocations: 87.94 kB / 1.705 GB, free: 2.098 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/2.791, allocations: 68 kB / 1.705 GB, free: 2.031 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002081/2.793, allocations: 1.024 MB / 1.706 GB, free: 1.004 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2726/3.066, allocations: 1.281 MB / 1.707 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.152e-05/3.066, allocations: 3.094 kB / 1.707 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/3.066, allocations: 3.5 kB / 1.707 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.051e-05/3.066, allocations: 61.77 kB / 1.707 GB, free: 148.4 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/3.077, allocations: 7.033 MB / 1.714 GB, free: 145.4 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008246/3.078, allocations: 495.6 kB / 1.714 GB, free: 145.3 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000461/3.078, allocations: 324.7 kB / 1.715 GB, free: 145.3 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00122/3.079, allocations: 1.27 MB / 1.716 GB, free: 143.9 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007097/3.08, allocations: 0.4999 MB / 1.716 GB, free: 143.7 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=65): time 3.727e-06/3.08, allocations: 3.406 kB / 1.716 GB, free: 143.7 MB / 0.7138 GB Notification: Performance of matching and sorting (n=65): time 0.002035/3.082, allocations: 0.8217 MB / 1.717 GB, free: 143.6 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/3.082, allocations: 483 kB / 1.718 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/3.083, allocations: 0.9893 MB / 1.718 GB, free: 142.9 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 9.778e-05/3.084, allocations: 31.89 kB / 1.719 GB, free: 142.9 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/3.084, allocations: 0.5341 MB / 1.719 GB, free: 142.6 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/3.084, allocations: 213.5 kB / 1.719 GB, free: 142.5 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/3.084, allocations: 0 / 1.719 GB, free: 142.5 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 6.536e-05/3.084, allocations: 340.3 kB / 1.72 GB, free: 142.2 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004787/3.085, allocations: 315.9 kB / 1.72 GB, free: 142.2 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/3.085, allocations: 0.6157 MB / 1.72 GB, free: 141.9 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/3.087, allocations: 427.3 kB / 1.721 GB, free: 141.9 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/3.087, allocations: 3.781 kB / 1.721 GB, free: 141.9 MB / 0.7138 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003742/3.09, allocations: 1.182 MB / 1.722 GB, free: 141.8 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004115/3.091, allocations: 2.459 MB / 1.724 GB, free: 139.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/3.091, allocations: 7.594 kB / 1.724 GB, free: 139.2 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006385/3.091, allocations: 270.7 kB / 1.725 GB, free: 139.2 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/3.093, allocations: 277.6 kB / 1.725 GB, free: 139.2 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/3.094, allocations: 0.9013 MB / 1.726 GB, free: 138.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/3.097, allocations: 250.9 kB / 1.726 GB, free: 138.7 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/3.097, allocations: 61.81 kB / 1.726 GB, free: 138.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/3.097, allocations: 6.875 kB / 1.726 GB, free: 138.7 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003548/3.1, allocations: 1.018 MB / 1.727 GB, free: 138.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/3.1, allocations: 8.656 kB / 1.727 GB, free: 138.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005569/3.101, allocations: 271.8 kB / 1.727 GB, free: 138.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/3.102, allocations: 275.5 kB / 1.728 GB, free: 138.6 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009688/3.103, allocations: 0.8972 MB / 1.729 GB, free: 138.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/3.106, allocations: 217.7 kB / 1.729 GB, free: 138.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/3.106, allocations: 57.44 kB / 1.729 GB, free: 138.1 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.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 (90): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003051/3.106, allocations: 139.1 kB / 1.729 GB, free: 138 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/3.106, allocations: 130.4 kB / 1.729 GB, free: 137.9 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/3.109, allocations: 0.9421 MB / 1.73 GB, free: 137.8 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/3.109, allocations: 7.781 kB / 1.73 GB, free: 137.8 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/3.109, allocations: 3.875 kB / 1.73 GB, free: 137.8 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002374/3.112, allocations: 0.8203 MB / 1.731 GB, free: 137.7 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005532/3.117, allocations: 3.1 MB / 1.734 GB, free: 136.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/3.117, allocations: 6.031 kB / 1.734 GB, free: 136.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/3.118, allocations: 173.3 kB / 1.734 GB, free: 136.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005606/3.119, allocations: 263.4 kB / 1.734 GB, free: 136.6 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.326e-05/3.119, allocations: 19.81 kB / 1.734 GB, free: 136.6 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009785/3.12, allocations: 0.9001 MB / 1.735 GB, free: 136.1 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/3.12, allocations: 6.172 kB / 1.735 GB, free: 136.1 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003498/3.124, allocations: 1.763 MB / 1.737 GB, free: 135.5 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004129/3.128, allocations: 2.582 MB / 1.739 GB, free: 134.5 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008042/3.129, allocations: 376.4 kB / 1.74 GB, free: 134.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004076/3.129, allocations: 10.81 kB / 1.74 GB, free: 134.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/3.131, allocations: 147.4 kB / 1.74 GB, free: 134.3 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/3.131, allocations: 65.84 kB / 1.74 GB, free: 134.3 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/3.131, allocations: 40.92 kB / 1.74 GB, free: 134.3 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.00128/3.133, allocations: 0.7477 MB / 1.741 GB, free: 134.2 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005857/3.139, allocations: 1.261 MB / 1.742 GB, free: 134.2 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,heaPum.com.isOn,N.T_start,N.count) * Number of discrete states: 2 (N.count,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.001968/3.14, allocations: 0.8821 MB / 1.743 GB, free: 134 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002611/3.143, allocations: 1.341 MB / 1.744 GB, free: 133.9 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/3.143, allocations: 3.719 kB / 1.744 GB, free: 133.9 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0007138/3.144, allocations: 401.1 kB / 1.745 GB, free: 133.9 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/3.146, allocations: 0.567 MB / 1.745 GB, free: 133.9 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005693/3.152, allocations: 2.127 MB / 1.747 GB, free: 133.3 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/3.153, allocations: 1.401 MB / 1.749 GB, free: 132.6 MB / 0.7138 GB Notification: Performance of SimCode: time 7.61e-07/3.153, allocations: 3.609 kB / 1.749 GB, free: 132.6 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe 2>&1)