Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.15/2.15, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001627/0.001627, allocations: 180 kB / 490.8 MB, free: 1.938 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.529/1.529, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001006, allocations: 100 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7647/0.7657, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/1.058, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.162/2.22, allocations: 430.4 MB / 1.632 GB, free: 1.449 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/2.221, allocations: 87.77 kB / 1.632 GB, free: 1.406 MB / 1.042 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 3.429/5.65, allocations: 0.962 GB / 2.594 GB, free: 32.02 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/5.65, allocations: 8 kB / 2.594 GB, free: 32.02 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003897/5.654, allocations: 0.6283 MB / 2.595 GB, free: 31.38 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007666/5.662, allocations: 3.029 MB / 2.598 GB, free: 28.29 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/5.662, allocations: 226.6 kB / 2.598 GB, free: 28.04 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000306/5.662, allocations: 116 kB / 2.598 GB, free: 27.93 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003489/5.666, allocations: 1.823 MB / 2.6 GB, free: 26.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003432/5.669, allocations: 2.133 MB / 2.602 GB, free: 23.83 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-05/5.669, allocations: 7.938 kB / 2.602 GB, free: 23.82 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/5.669, allocations: 12 kB / 2.602 GB, free: 23.81 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.323e-05/5.67, allocations: 87.56 kB / 2.602 GB, free: 23.73 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/5.685, allocations: 11.8 MB / 2.613 GB, free: 11.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/5.687, allocations: 1.18 MB / 2.615 GB, free: 10.17 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008125/5.688, allocations: 0.6642 MB / 2.615 GB, free: 9.508 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007751/5.688, allocations: 1.327 MB / 2.617 GB, free: 7.887 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/5.69, allocations: 0.955 MB / 2.617 GB, free: 6.844 MB / 1.151 GB Notification: Performance of pre-optimization done (n=107): time 3.226e-06/5.69, allocations: 4 kB / 2.617 GB, free: 6.84 MB / 1.151 GB Notification: Performance of matching and sorting (n=107): time 0.003236/5.693, allocations: 1.468 MB / 2.619 GB, free: 5.363 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/5.693, allocations: 0.7776 MB / 2.62 GB, free: 4.402 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/5.696, allocations: 2.017 MB / 2.622 GB, free: 2.375 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002962/5.697, allocations: 37.64 kB / 2.622 GB, free: 2.332 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008678/5.698, allocations: 0.8877 MB / 2.623 GB, free: 1.418 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004724/5.698, allocations: 362.7 kB / 2.623 GB, free: 1.059 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.518e-05/5.698, allocations: 0 / 2.623 GB, free: 1.059 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001141/5.698, allocations: 357.9 kB / 2.623 GB, free: 0.7031 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009178/5.699, allocations: 0.6209 MB / 2.624 GB, free: 84 kB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/5.701, allocations: 1.174 MB / 2.625 GB, free: 14.67 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/5.703, allocations: 0.7582 MB / 2.626 GB, free: 13.91 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/5.703, allocations: 4 kB / 2.626 GB, free: 13.91 MB / 1.167 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004508/5.707, allocations: 1.851 MB / 2.628 GB, free: 12.05 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.002295/5.71, allocations: 4.213 MB / 2.632 GB, free: 7.461 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/5.71, allocations: 15.98 kB / 2.632 GB, free: 7.445 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.111e-05/5.71, allocations: 20 kB / 2.632 GB, free: 7.426 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002138/5.712, allocations: 411.4 kB / 2.632 GB, free: 7.023 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.871e-05/5.712, allocations: 23.92 kB / 2.632 GB, free: 7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/5.715, allocations: 258.2 kB / 2.632 GB, free: 6.746 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/5.715, allocations: 75.97 kB / 2.632 GB, free: 6.672 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/5.715, allocations: 7.125 kB / 2.632 GB, free: 6.668 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003317/5.718, allocations: 1.552 MB / 2.634 GB, free: 5.109 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/5.719, allocations: 15.97 kB / 2.634 GB, free: 5.094 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/5.719, allocations: 23.98 kB / 2.634 GB, free: 5.07 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/5.72, allocations: 403.4 kB / 2.634 GB, free: 4.676 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/5.72, allocations: 19.94 kB / 2.634 GB, free: 4.656 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/5.723, allocations: 218.7 kB / 2.635 GB, free: 4.441 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/5.723, allocations: 71.97 kB / 2.635 GB, free: 4.371 MB / 1.167 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.0005183/5.724, allocations: 164.7 kB / 2.635 GB, free: 4.203 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006869/5.725, allocations: 249 kB / 2.635 GB, free: 3.957 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00376/5.728, allocations: 1.72 MB / 2.637 GB, free: 2.211 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/5.728, allocations: 12 kB / 2.637 GB, free: 2.199 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/5.729, allocations: 8 kB / 2.637 GB, free: 2.191 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002178/5.731, allocations: 1.315 MB / 2.638 GB, free: 0.8242 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6744/6.405, allocations: 5.167 MB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/6.405, allocations: 5.406 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/6.407, allocations: 279.1 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/6.407, allocations: 10.19 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/6.407, allocations: 19.84 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.798e-06/6.407, allocations: 7.719 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/6.407, allocations: 9.188 kB / 2.643 GB, free: 287 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004429/6.411, allocations: 2.966 MB / 2.646 GB, free: 286.2 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005886/6.417, allocations: 4.329 MB / 2.651 GB, free: 284.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/6.419, allocations: 0.5988 MB / 2.651 GB, free: 284.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/6.419, allocations: 14.86 kB / 2.651 GB, free: 284.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/6.421, allocations: 140 kB / 2.651 GB, free: 284.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/6.421, allocations: 106.8 kB / 2.651 GB, free: 284.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/6.422, allocations: 51 kB / 2.651 GB, free: 284.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.002395/6.424, allocations: 1.56 MB / 2.653 GB, free: 284.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.007373/6.431, allocations: 1.896 MB / 2.655 GB, free: 284.5 MB / 1.167 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.002423/6.434, allocations: 1.2 MB / 2.656 GB, free: 284.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004189/6.438, allocations: 2.525 MB / 2.658 GB, free: 284.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/6.438, allocations: 240 / 2.658 GB, free: 284.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/6.439, allocations: 0.7517 MB / 2.659 GB, free: 284.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006776/6.446, allocations: 1.003 MB / 2.66 GB, free: 284.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/6.456, allocations: 3.761 MB / 2.664 GB, free: 283.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002359/6.459, allocations: 2.062 MB / 2.666 GB, free: 282.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.603e-06/6.459, allocations: 0 / 2.666 GB, free: 282.4 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)