Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.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_Static,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Static",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Static",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.6977/0.6977, allocations: 141.8 MB / 149.1 MB, free: 14.25 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.001191/0.001191, allocations: 186.2 kB / 181.9 MB, free: 10.77 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.279/1.279, allocations: 221.3 MB / 436 MB, free: 3.316 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000946/0.0009459, allocations: 101.7 kB / 0.507 GB, free: 18.2 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001762/0.001762, allocations: 274.5 kB / 0.5885 GB, free: 4.742 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3737/0.3755, allocations: 89.63 MB / 0.676 GB, free: 137.4 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.523, allocations: 82.78 MB / 0.7568 GB, free: 84.85 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6479/1.171, allocations: 393.3 MB / 1.141 GB, free: 1.91 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/1.171, allocations: 98.77 kB / 1.141 GB, free: 1.863 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 1.633/2.804, allocations: 0.56 GB / 1.701 GB, free: 18.75 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/2.804, allocations: 9.25 kB / 1.701 GB, free: 18.74 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004923/2.809, allocations: 0.6651 MB / 1.702 GB, free: 18.07 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004015/2.813, allocations: 1.774 MB / 1.703 GB, free: 16.24 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/2.813, allocations: 79.97 kB / 1.703 GB, free: 16.16 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003252/2.814, allocations: 72 kB / 1.703 GB, free: 16.09 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0022/2.816, allocations: 1.004 MB / 1.704 GB, free: 15.08 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002354/2.818, allocations: 1.277 MB / 1.706 GB, free: 13.7 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/2.818, allocations: 3.938 kB / 1.706 GB, free: 13.7 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001628/2.818, allocations: 7.906 kB / 1.706 GB, free: 13.69 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.265e-05/2.818, allocations: 50.08 kB / 1.706 GB, free: 13.64 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/2.829, allocations: 7.285 MB / 1.713 GB, free: 6.031 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008637/2.83, allocations: 0.5208 MB / 1.713 GB, free: 5.504 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/2.83, allocations: 306.8 kB / 1.714 GB, free: 5.203 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/2.831, allocations: 1.271 MB / 1.715 GB, free: 3.652 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/2.831, allocations: 51.2 kB / 1.715 GB, free: 3.594 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=64): time 2.906e-06/2.831, allocations: 0 / 1.715 GB, free: 3.594 MB / 0.7138 GB Notification: Performance of matching and sorting (n=64): time 0.002039/2.833, allocations: 0.8049 MB / 1.716 GB, free: 2.777 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/2.833, allocations: 107.5 kB / 1.716 GB, free: 2.645 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/2.835, allocations: 0.9665 MB / 1.717 GB, free: 1.668 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001254/2.835, allocations: 29.7 kB / 1.717 GB, free: 1.633 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004001/2.835, allocations: 0.5221 MB / 1.717 GB, free: 1.102 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/2.836, allocations: 208.9 kB / 1.718 GB, free: 0.8945 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/2.836, allocations: 0 / 1.718 GB, free: 0.8945 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 6.285e-05/2.836, allocations: 345.8 kB / 1.718 GB, free: 0.5508 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/2.836, allocations: 285.9 kB / 1.718 GB, free: 280 kB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2971/3.133, allocations: 0.5584 MB / 1.719 GB, free: 153.8 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/3.135, allocations: 403.7 kB / 1.719 GB, free: 153.8 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/3.135, allocations: 0 / 1.719 GB, free: 153.8 MB / 0.7138 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002698/3.138, allocations: 1.074 MB / 1.72 GB, free: 153.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005176/3.138, allocations: 2.452 MB / 1.723 GB, free: 151.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/3.138, allocations: 10.59 kB / 1.723 GB, free: 151.2 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008563/3.139, allocations: 359.6 kB / 1.723 GB, free: 151.2 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/3.141, allocations: 250.1 kB / 1.723 GB, free: 151.2 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/3.142, allocations: 1.097 MB / 1.724 GB, free: 150.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/3.144, allocations: 226.7 kB / 1.724 GB, free: 150.7 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/3.145, allocations: 58.98 kB / 1.724 GB, free: 150.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/3.145, allocations: 6.875 kB / 1.724 GB, free: 150.7 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002097/3.147, allocations: 0.9222 MB / 1.725 GB, free: 150.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/3.147, allocations: 7.531 kB / 1.725 GB, free: 150.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007806/3.147, allocations: 360.7 kB / 1.726 GB, free: 150.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/3.149, allocations: 248.4 kB / 1.726 GB, free: 150.6 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/3.15, allocations: 1.094 MB / 1.727 GB, free: 150.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/3.152, allocations: 190.5 kB / 1.727 GB, free: 150.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/3.153, allocations: 50.59 kB / 1.727 GB, free: 150.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: 2 ($PRE.heaPum.com.isOn,heaPum.com.isOn) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * 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 {5 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002909/3.153, allocations: 135.1 kB / 1.727 GB, free: 150 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/3.153, allocations: 123.7 kB / 1.727 GB, free: 149.9 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/3.155, allocations: 0.9264 MB / 1.728 GB, free: 149.9 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/3.155, allocations: 6.75 kB / 1.728 GB, free: 149.9 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/3.155, allocations: 6.25 kB / 1.728 GB, free: 149.9 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001443/3.157, allocations: 0.8149 MB / 1.729 GB, free: 149.7 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005545/3.162, allocations: 2.854 MB / 1.732 GB, free: 148.8 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/3.162, allocations: 3.938 kB / 1.732 GB, free: 148.8 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009995/3.163, allocations: 161.2 kB / 1.732 GB, free: 148.8 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007826/3.164, allocations: 358.8 kB / 1.732 GB, free: 148.8 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.971e-05/3.164, allocations: 18.81 kB / 1.733 GB, free: 148.8 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/3.166, allocations: 1.202 MB / 1.734 GB, free: 148.3 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/3.166, allocations: 3.719 kB / 1.734 GB, free: 148.3 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002122/3.169, allocations: 1.231 MB / 1.735 GB, free: 147.7 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002276/3.171, allocations: 1.676 MB / 1.737 GB, free: 146.8 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007885/3.172, allocations: 363 kB / 1.737 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004038/3.172, allocations: 5.531 kB / 1.737 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001907/3.174, allocations: 132.2 kB / 1.737 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/3.174, allocations: 57.42 kB / 1.737 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/3.174, allocations: 43.17 kB / 1.737 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001263/3.175, allocations: 0.7316 MB / 1.738 GB, free: 146.5 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005586/3.181, allocations: 1.238 MB / 1.739 GB, free: 146.4 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (heaPum.com.isOn) * Number of discrete states: 1 (heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.002173/3.183, allocations: 0.8859 MB / 1.74 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002436/3.186, allocations: 1.254 MB / 1.741 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/3.186, allocations: 3.188 kB / 1.741 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.001353/3.187, allocations: 461.1 kB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002897/3.19, allocations: 0.5553 MB / 1.742 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006163/3.196, allocations: 1.95 MB / 1.744 GB, free: 145.7 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/3.198, allocations: 1.376 MB / 1.745 GB, free: 145 MB / 0.7138 GB Notification: Performance of SimCode: time 7.12e-07/3.198, allocations: 2.656 kB / 1.745 GB, free: 145 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Static_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Static.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Static.pipe 2>&1)