Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",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 9.1.1-maint.9.1.x/package.mo): time 2.24/2.24, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001162/0.001162, allocations: 177.2 kB / 487 MB, free: 5.371 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.52/1.52, allocations: 221.3 MB / 0.7819 GB, free: 1.445 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009624, allocations: 85.44 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5359/0.5369, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.7997, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9756/1.775, allocations: 429.6 MB / 1.625 GB, free: 9.98 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/1.776, allocations: 88.84 kB / 1.625 GB, free: 9.938 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: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 2.977/4.752, allocations: 0.962 GB / 2.587 GB, free: 2.41 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/4.752, allocations: 12 kB / 2.587 GB, free: 2.398 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003577/4.756, allocations: 0.6205 MB / 2.588 GB, free: 1.773 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5718/5.328, allocations: 3.026 MB / 2.59 GB, free: 275.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002874/5.328, allocations: 226.9 kB / 2.591 GB, free: 275 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003792/5.328, allocations: 119.3 kB / 2.591 GB, free: 275 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003358/5.332, allocations: 1.814 MB / 2.593 GB, free: 274.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003331/5.335, allocations: 2.135 MB / 2.595 GB, free: 274.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-05/5.335, allocations: 9.562 kB / 2.595 GB, free: 274.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/5.335, allocations: 6.391 kB / 2.595 GB, free: 274.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/5.336, allocations: 92.91 kB / 2.595 GB, free: 274.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01681/5.352, allocations: 11.78 MB / 2.606 GB, free: 268.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/5.354, allocations: 1.18 MB / 2.607 GB, free: 268.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009027/5.355, allocations: 0.6629 MB / 2.608 GB, free: 268.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008394/5.356, allocations: 1.331 MB / 2.609 GB, free: 267.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/5.357, allocations: 0.957 MB / 2.61 GB, free: 266.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=107): time 4.649e-06/5.357, allocations: 0 / 2.61 GB, free: 266.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=107): time 0.003156/5.36, allocations: 1.47 MB / 2.612 GB, free: 266.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/5.36, allocations: 0.7814 MB / 2.613 GB, free: 265.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003091/5.364, allocations: 2.015 MB / 2.614 GB, free: 265.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002263/5.364, allocations: 32.61 kB / 2.615 GB, free: 265.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008302/5.365, allocations: 0.8871 MB / 2.615 GB, free: 265.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/5.365, allocations: 365.8 kB / 2.616 GB, free: 265 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.093e-05/5.365, allocations: 0 / 2.616 GB, free: 265 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001226/5.365, allocations: 364.5 kB / 2.616 GB, free: 264.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009102/5.366, allocations: 0.6207 MB / 2.617 GB, free: 264.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/5.368, allocations: 1.17 MB / 2.618 GB, free: 264.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/5.369, allocations: 0.7646 MB / 2.619 GB, free: 264.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/5.369, allocations: 3.094 kB / 2.619 GB, free: 264.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004071/5.373, allocations: 1.844 MB / 2.62 GB, free: 263.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.00111/5.374, allocations: 4.223 MB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/5.374, allocations: 13.91 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.707e-05/5.375, allocations: 18.34 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/5.376, allocations: 404.8 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.479e-05/5.376, allocations: 21.91 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/5.379, allocations: 261.7 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001812/5.38, allocations: 72.34 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/5.38, allocations: 6.938 kB / 2.625 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002797/5.382, allocations: 1.56 MB / 2.627 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/5.382, allocations: 14.45 kB / 2.627 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/5.382, allocations: 20.75 kB / 2.627 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/5.384, allocations: 401.8 kB / 2.627 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/5.384, allocations: 25.75 kB / 2.627 GB, free: 259.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/5.387, allocations: 219 kB / 2.627 GB, free: 259.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/5.387, allocations: 72.44 kB / 2.628 GB, free: 259.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,heaPum.uMod,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 178 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004782/5.387, allocations: 165.5 kB / 2.628 GB, free: 259.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004988/5.388, allocations: 252.8 kB / 2.628 GB, free: 259.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003129/5.391, allocations: 1.725 MB / 2.63 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/5.391, allocations: 13.91 kB / 2.63 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/5.391, allocations: 2.875 kB / 2.63 GB, free: 259 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001763/5.393, allocations: 1.313 MB / 2.631 GB, free: 258.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006937/5.4, allocations: 5.163 MB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/5.4, allocations: 7.438 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/5.401, allocations: 271.7 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.448e-05/5.401, allocations: 10.62 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.814e-05/5.401, allocations: 20.19 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/5.401, allocations: 10.59 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/5.401, allocations: 6.219 kB / 2.636 GB, free: 257.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003825/5.405, allocations: 2.967 MB / 2.639 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005144/5.41, allocations: 4.322 MB / 2.643 GB, free: 254.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/5.412, allocations: 0.6061 MB / 2.644 GB, free: 254.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000511/5.412, allocations: 11.25 kB / 2.644 GB, free: 254.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001907/5.414, allocations: 145.7 kB / 2.644 GB, free: 254.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/5.415, allocations: 98.2 kB / 2.644 GB, free: 254.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/5.415, allocations: 57.84 kB / 2.644 GB, free: 254.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.002451/5.417, allocations: 1.557 MB / 2.646 GB, free: 254.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.007358/5.425, allocations: 1.895 MB / 2.648 GB, free: 254.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 4 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U,heaPum1.vol1.dynBal.U,heaPum1.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,heaPum.uMod,uMod.T_start,uMod.count) * Number of discrete states: 1 (uMod.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002247/5.427, allocations: 1.219 MB / 2.649 GB, free: 254.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003941/5.431, allocations: 2.522 MB / 2.651 GB, free: 254.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/5.431, allocations: 3.859 kB / 2.651 GB, free: 254.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/5.432, allocations: 0.7525 MB / 2.652 GB, free: 254.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005743/5.438, allocations: 1.002 MB / 2.653 GB, free: 254.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008912/5.447, allocations: 3.753 MB / 2.657 GB, free: 253.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/5.449, allocations: 2.067 MB / 2.659 GB, free: 252.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.032e-06/5.449, allocations: 0 / 2.659 GB, free: 252.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)