Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 188.9 kB / 7.801 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4693/0.4693, allocations: 90.85 MB / 99.07 MB, free: 14.94 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.4 MB / 342.8 MB, free: 5.207 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001092, allocations: 91.34 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1827/0.1839, allocations: 78.45 MB / 494 MB, free: 7.996 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.6126, allocations: 72.29 MB / 0.553 GB, free: 73.43 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6588/1.271, allocations: 387.9 MB / 0.9318 GB, free: 0.9336 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/1.272, allocations: 92.38 kB / 0.9319 GB, free: 0.8867 MB / 0.5886 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.933/5.204, allocations: 1.071 GB / 2.003 GB, free: 43.44 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/5.204, allocations: 12.75 kB / 2.003 GB, free: 43.44 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009588/5.214, allocations: 1.306 MB / 2.004 GB, free: 43.26 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007868/5.222, allocations: 3.349 MB / 2.008 GB, free: 42.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/5.222, allocations: 165.7 kB / 2.008 GB, free: 42.63 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/5.223, allocations: 146.9 kB / 2.008 GB, free: 42.63 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004009/5.227, allocations: 2 MB / 2.01 GB, free: 42.62 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/5.231, allocations: 2.513 MB / 2.012 GB, free: 42.12 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.687e-05/5.231, allocations: 7.094 kB / 2.012 GB, free: 42.12 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/5.231, allocations: 5.906 kB / 2.012 GB, free: 42.12 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.256e-05/5.231, allocations: 93.66 kB / 2.013 GB, free: 42.11 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02047/5.252, allocations: 13.93 MB / 2.026 GB, free: 35.62 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/5.253, allocations: 1.091 MB / 2.027 GB, free: 35.39 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008377/5.254, allocations: 0.5825 MB / 2.028 GB, free: 35.38 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001481/5.256, allocations: 1.784 MB / 2.03 GB, free: 33.41 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/5.257, allocations: 0.8927 MB / 2.03 GB, free: 33.12 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=118): time 3.516e-06/5.257, allocations: 0 / 2.03 GB, free: 33.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=122): time 0.01815/5.275, allocations: 10.02 MB / 2.04 GB, free: 27.09 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002162/5.275, allocations: 0.9383 MB / 2.041 GB, free: 25.96 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/5.278, allocations: 1.843 MB / 2.043 GB, free: 25.75 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0002545/5.278, allocations: 34.92 kB / 2.043 GB, free: 25.71 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007931/5.279, allocations: 0.9901 MB / 2.044 GB, free: 25.14 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003866/5.279, allocations: 406 kB / 2.044 GB, free: 24.88 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/5.28, allocations: 2.156 kB / 2.044 GB, free: 24.88 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.65e-05/5.28, allocations: 367.2 kB / 2.045 GB, free: 24.58 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/5.281, allocations: 0.5804 MB / 2.045 GB, free: 24.57 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/5.282, allocations: 1.205 MB / 2.046 GB, free: 23.89 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/5.284, allocations: 0.8054 MB / 2.047 GB, free: 23.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/5.285, allocations: 2.906 kB / 2.047 GB, free: 23.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005116/5.29, allocations: 2.18 MB / 2.049 GB, free: 23.67 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.00117/5.291, allocations: 5.096 MB / 2.054 GB, free: 18.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/5.291, allocations: 16.84 kB / 2.054 GB, free: 18.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/5.293, allocations: 0.7168 MB / 2.055 GB, free: 18.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/5.295, allocations: 468 kB / 2.055 GB, free: 18.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004448/5.3, allocations: 2.352 MB / 2.058 GB, free: 17.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005674/5.306, allocations: 381.1 kB / 2.058 GB, free: 17.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004929/5.306, allocations: 109.9 kB / 2.058 GB, free: 17.13 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/5.306, allocations: 3.719 kB / 2.058 GB, free: 17.13 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004839/5.311, allocations: 1.895 MB / 2.06 GB, free: 17.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/5.311, allocations: 13.97 kB / 2.06 GB, free: 17.07 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001635/5.313, allocations: 0.7214 MB / 2.061 GB, free: 17.05 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/5.315, allocations: 450.9 kB / 2.061 GB, free: 17.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003854/5.319, allocations: 2.358 MB / 2.063 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004808/5.324, allocations: 323.2 kB / 2.064 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/5.324, allocations: 105.1 kB / 2.064 GB, free: 15.97 MB / 0.6511 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.0006815/5.325, allocations: 164.1 kB / 2.064 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000749/5.326, allocations: 247.7 kB / 2.064 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005437/5.331, allocations: 1.701 MB / 2.066 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/5.331, allocations: 19.16 kB / 2.066 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/5.331, allocations: 7.156 kB / 2.066 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003917/5.335, allocations: 1.512 MB / 2.067 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/5.348, allocations: 6.016 MB / 2.073 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/5.348, allocations: 10.44 kB / 2.073 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/5.35, allocations: 288.4 kB / 2.074 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/5.352, allocations: 0.6035 MB / 2.074 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/5.352, allocations: 39.64 kB / 2.074 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003841/5.356, allocations: 2.1 MB / 2.076 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.179e-05/5.356, allocations: 11.31 kB / 2.076 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007235/5.363, allocations: 3.161 MB / 2.079 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00755/5.371, allocations: 4.414 MB / 2.084 GB, free: 9.605 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/5.372, allocations: 0.6118 MB / 2.084 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005831/5.373, allocations: 14.2 kB / 2.084 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003458/5.376, allocations: 260.7 kB / 2.085 GB, free: 9.379 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/5.377, allocations: 103.2 kB / 2.085 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/5.377, allocations: 74.88 kB / 2.085 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.002628/5.379, allocations: 1.384 MB / 2.086 GB, free: 9.223 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009551/5.389, allocations: 2.091 MB / 2.088 GB, free: 9.102 MB / 0.6511 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.003358/5.392, allocations: 1.492 MB / 2.09 GB, free: 8.711 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.006626/5.399, allocations: 2.753 MB / 2.092 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/5.399, allocations: 10.41 kB / 2.092 GB, free: 8.516 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002211/5.401, allocations: 0.856 MB / 2.093 GB, free: 8.48 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006134/5.407, allocations: 1.04 MB / 2.094 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/5.419, allocations: 3.96 MB / 2.098 GB, free: 7.379 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/5.422, allocations: 2.05 MB / 2.1 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of SimCode: time 9.72e-07/5.422, allocations: 3 kB / 2.1 GB, free: 6.602 MB / 0.6511 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)