Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.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_VariableSpeed,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 192.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4578/0.4578, allocations: 90.85 MB / 99.07 MB, free: 14.95 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.267/1.267, allocations: 221.4 MB / 342.7 MB, free: 5.277 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.0008767/0.0008771, allocations: 97.83 kB / 415.5 MB, free: 6.422 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1595/0.1604, allocations: 78.44 MB / 493.9 MB, free: 7.984 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.5359, allocations: 72.31 MB / 0.553 GB, free: 73.24 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6376/1.174, allocations: 386.8 MB / 0.9307 GB, free: 1.883 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/1.174, allocations: 84.92 kB / 0.9308 GB, free: 1.844 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: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 2.154/3.328, allocations: 0.5628 GB / 1.494 GB, free: 77.25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/3.328, allocations: 9.812 kB / 1.494 GB, free: 77.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005221/3.333, allocations: 0.6601 MB / 1.494 GB, free: 77.16 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/3.338, allocations: 1.803 MB / 1.496 GB, free: 76.8 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/3.338, allocations: 91.75 kB / 1.496 GB, free: 76.76 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004613/3.339, allocations: 70 kB / 1.496 GB, free: 76.76 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002772/3.342, allocations: 1.015 MB / 1.497 GB, free: 76.75 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00301/3.345, allocations: 1.298 MB / 1.498 GB, free: 76.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.203e-05/3.345, allocations: 3.719 kB / 1.498 GB, free: 76.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/3.345, allocations: 3.938 kB / 1.498 GB, free: 76.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.957e-05/3.345, allocations: 49.94 kB / 1.498 GB, free: 76.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01212/3.357, allocations: 7.068 MB / 1.505 GB, free: 73.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009247/3.358, allocations: 0.4926 MB / 1.506 GB, free: 73.27 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/3.359, allocations: 318.5 kB / 1.506 GB, free: 73.26 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001131/3.36, allocations: 1.265 MB / 1.507 GB, free: 71.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007256/3.36, allocations: 0.4956 MB / 1.508 GB, free: 71.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=65): time 3.837e-06/3.361, allocations: 3.062 kB / 1.508 GB, free: 71.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=65): time 0.002413/3.363, allocations: 0.8256 MB / 1.509 GB, free: 71.56 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/3.363, allocations: 482.9 kB / 1.509 GB, free: 71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/3.365, allocations: 0.9951 MB / 1.51 GB, free: 70.85 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001432/3.365, allocations: 28.42 kB / 1.51 GB, free: 70.82 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005403/3.366, allocations: 0.5306 MB / 1.511 GB, free: 70.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/3.366, allocations: 219.1 kB / 1.511 GB, free: 70.36 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.948e-05/3.366, allocations: 3.156 kB / 1.511 GB, free: 70.36 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.884e-05/3.366, allocations: 335.8 kB / 1.511 GB, free: 70.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/3.367, allocations: 316.3 kB / 1.512 GB, free: 70.05 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007569/3.367, allocations: 0.6079 MB / 1.512 GB, free: 69.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/3.369, allocations: 429 kB / 1.513 GB, free: 69.71 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/3.369, allocations: 3.875 kB / 1.513 GB, free: 69.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004227/3.373, allocations: 1.185 MB / 1.514 GB, free: 69.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005389/3.374, allocations: 2.453 MB / 1.516 GB, free: 67.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/3.374, allocations: 11.59 kB / 1.516 GB, free: 67.05 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007083/3.374, allocations: 268 kB / 1.516 GB, free: 67.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/3.376, allocations: 279.4 kB / 1.517 GB, free: 67.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/3.377, allocations: 0.8996 MB / 1.517 GB, free: 66.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/3.38, allocations: 249.1 kB / 1.518 GB, free: 66.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001821/3.38, allocations: 61.16 kB / 1.518 GB, free: 66.46 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/3.38, allocations: 5.906 kB / 1.518 GB, free: 66.46 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003847/3.384, allocations: 1.019 MB / 1.519 GB, free: 66.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/3.384, allocations: 11.44 kB / 1.519 GB, free: 66.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/3.385, allocations: 268.5 kB / 1.519 GB, free: 66.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/3.386, allocations: 274.7 kB / 1.519 GB, free: 66.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/3.387, allocations: 0.8964 MB / 1.52 GB, free: 65.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002598/3.39, allocations: 209.6 kB / 1.52 GB, free: 65.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/3.39, allocations: 54.12 kB / 1.52 GB, free: 65.87 MB / 0.6198 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.0004017/3.39, allocations: 142.2 kB / 1.521 GB, free: 65.76 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005009/3.391, allocations: 133.3 kB / 1.521 GB, free: 65.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/3.394, allocations: 0.9283 MB / 1.522 GB, free: 65.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/3.394, allocations: 7.406 kB / 1.522 GB, free: 65.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/3.395, allocations: 5.094 kB / 1.522 GB, free: 65.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002554/3.397, allocations: 0.8236 MB / 1.522 GB, free: 65.44 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007142/3.404, allocations: 3.102 MB / 1.525 GB, free: 64.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/3.404, allocations: 10.03 kB / 1.525 GB, free: 64.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/3.405, allocations: 171.2 kB / 1.526 GB, free: 64.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000616/3.406, allocations: 272 kB / 1.526 GB, free: 64.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.732e-05/3.406, allocations: 16.7 kB / 1.526 GB, free: 64.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/3.407, allocations: 0.9011 MB / 1.527 GB, free: 63.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/3.407, allocations: 3.219 kB / 1.527 GB, free: 63.86 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003951/3.411, allocations: 1.758 MB / 1.529 GB, free: 63.25 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004521/3.416, allocations: 2.587 MB / 1.531 GB, free: 62.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/3.417, allocations: 371.8 kB / 1.531 GB, free: 62.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004773/3.417, allocations: 10.66 kB / 1.531 GB, free: 62.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/3.419, allocations: 140.4 kB / 1.532 GB, free: 62.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/3.419, allocations: 64.97 kB / 1.532 GB, free: 62.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/3.42, allocations: 39.42 kB / 1.532 GB, free: 62.07 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001434/3.421, allocations: 0.7484 MB / 1.532 GB, free: 61.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.005933/3.427, allocations: 1.266 MB / 1.534 GB, free: 61.78 MB / 0.6198 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.002587/3.43, allocations: 0.8827 MB / 1.534 GB, free: 61.56 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002928/3.432, allocations: 1.343 MB / 1.536 GB, free: 61.47 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/3.432, allocations: 2.5 kB / 1.536 GB, free: 61.47 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0008507/3.433, allocations: 395.7 kB / 1.536 GB, free: 61.47 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/3.436, allocations: 0.5568 MB / 1.537 GB, free: 61.46 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0075/3.444, allocations: 2.138 MB / 1.539 GB, free: 60.85 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/3.446, allocations: 1.406 MB / 1.54 GB, free: 60.12 MB / 0.6198 GB Notification: Performance of SimCode: time 1.733e-06/3.446, allocations: 0 / 1.54 GB, free: 60.12 MB / 0.6198 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_VariableSpeed.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_VariableSpeed.pipe 2>&1)