Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.251/2.251, allocations: 253.1 MB / 260.4 MB, free: 7.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001648/0.001647, allocations: 177.3 kB / 319.6 MB, free: 3.293 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00126/0.001259, allocations: 84.78 kB / 0.6746 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.107e-06/9.237e-06, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2899, allocations: 106.3 MB / 0.888 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.56/1.85, allocations: 466.7 MB / 1.344 GB, free: 245.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/1.85, allocations: 91.17 kB / 1.344 GB, free: 245.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.899/6.75, allocations: 0.9724 GB / 2.316 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004877/6.75, allocations: 67.12 kB / 2.316 GB, free: 112.6 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 0.01182/6.762, allocations: 2.772 MB / 2.319 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/6.762, allocations: 10.83 kB / 2.319 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006152/6.768, allocations: 0.6971 MB / 2.32 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/6.781, allocations: 2.996 MB / 2.323 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001575/6.783, allocations: 288 kB / 2.323 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009479/6.784, allocations: 103.5 kB / 2.323 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006097/6.79, allocations: 1.534 MB / 2.325 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005981/6.796, allocations: 1.67 MB / 2.326 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.816e-05/6.796, allocations: 3.688 kB / 2.326 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003143/6.796, allocations: 7.5 kB / 2.326 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-05/6.796, allocations: 41.62 kB / 2.326 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02459/6.821, allocations: 9.611 MB / 2.336 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/6.823, allocations: 0.7019 MB / 2.336 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/6.825, allocations: 0.5791 MB / 2.337 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01239/6.838, allocations: 4.006 MB / 2.341 GB, free: 103.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001883/6.839, allocations: 0.7036 MB / 2.341 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=96): time 5.52e-06/6.839, allocations: 0 / 2.341 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=96): time 0.005395/6.845, allocations: 1.284 MB / 2.343 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.399e-05/6.845, allocations: 195.5 kB / 2.343 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005169/6.85, allocations: 1.789 MB / 2.345 GB, free: 103.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004755/6.851, allocations: 32.98 kB / 2.345 GB, free: 103.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001115/6.852, allocations: 0.7327 MB / 2.345 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007266/6.853, allocations: 312.5 kB / 2.346 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/6.853, allocations: 0 / 2.346 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001476/6.853, allocations: 360.1 kB / 2.346 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/6.855, allocations: 0.5509 MB / 2.347 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002238/6.857, allocations: 1.006 MB / 2.348 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003363/6.86, allocations: 0.7113 MB / 2.348 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.363e-05/6.861, allocations: 3.844 kB / 2.348 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.007345/6.868, allocations: 1.731 MB / 2.35 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000958/6.869, allocations: 4.1 MB / 2.354 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.118e-05/6.869, allocations: 13.41 kB / 2.354 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.064e-05/6.869, allocations: 17 kB / 2.354 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003973/6.873, allocations: 425.3 kB / 2.354 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.029e-05/6.873, allocations: 28.02 kB / 2.354 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005193/6.878, allocations: 341.2 kB / 2.355 GB, free: 97.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006073/6.879, allocations: 74.8 kB / 2.355 GB, free: 97.02 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/6.879, allocations: 6.062 kB / 2.355 GB, free: 97.02 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006176/6.885, allocations: 1.446 MB / 2.356 GB, free: 96.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.134e-05/6.885, allocations: 12.34 kB / 2.356 GB, free: 96.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.111e-05/6.885, allocations: 21.09 kB / 2.356 GB, free: 96.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003879/6.889, allocations: 421 kB / 2.357 GB, free: 96.99 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.201e-05/6.889, allocations: 30.78 kB / 2.357 GB, free: 96.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004936/6.894, allocations: 299.9 kB / 2.357 GB, free: 96.94 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005991/6.895, allocations: 77.84 kB / 2.357 GB, free: 96.94 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.TSouEnt.T_start,TSouEnt.T_start,$PRE.TSouEnt.count,TSouEnt.count,$PRE.TLoaSet.T_start,TLoaSet.T_start,$PRE.TLoaSet.count,TLoaSet.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0006404/6.896, allocations: 148.5 kB / 2.357 GB, free: 96.82 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008535/6.897, allocations: 226.7 kB / 2.357 GB, free: 96.71 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006234/6.903, allocations: 1.565 MB / 2.359 GB, free: 96.62 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/6.903, allocations: 18.77 kB / 2.359 GB, free: 96.62 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/6.903, allocations: 0 / 2.359 GB, free: 96.62 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003881/6.907, allocations: 1.194 MB / 2.36 GB, free: 96.45 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/6.918, allocations: 3.367 MB / 2.363 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/6.918, allocations: 2.156 kB / 2.363 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002995/6.921, allocations: 285.1 kB / 2.364 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-05/6.921, allocations: 3.406 kB / 2.364 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003269/6.921, allocations: 20.95 kB / 2.364 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/6.921, allocations: 3.625 kB / 2.364 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/6.921, allocations: 1.125 kB / 2.364 GB, free: 96.07 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006909/6.928, allocations: 2.304 MB / 2.366 GB, free: 95.68 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002278/6.931, allocations: 0.5105 MB / 2.366 GB, free: 95.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/6.932, allocations: 7.578 kB / 2.367 GB, free: 95.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004448/6.936, allocations: 215.9 kB / 2.367 GB, free: 95.44 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006047/6.937, allocations: 114.5 kB / 2.367 GB, free: 95.44 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/6.937, allocations: 47.56 kB / 2.367 GB, free: 95.44 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.003805/6.941, allocations: 1.336 MB / 2.368 GB, free: 95.29 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.007934/6.949, allocations: 1.382 MB / 2.37 GB, free: 95.07 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,uMod.T_start,uMod.count,pulse.T_start,pulse.count,TSouEnt.T_start,TSouEnt.count,TLoaSet.T_start,TLoaSet.count) * Number of discrete states: 4 (uMod.count,pulse.count,TSouEnt.count,TLoaSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.004012/6.953, allocations: 1.471 MB / 2.371 GB, free: 94.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.006956/6.96, allocations: 2.28 MB / 2.373 GB, free: 94.61 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/6.96, allocations: 3.969 kB / 2.373 GB, free: 94.61 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001958/6.962, allocations: 0.6558 MB / 2.374 GB, free: 94.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008864/6.971, allocations: 0.9091 MB / 2.375 GB, free: 94.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/6.984, allocations: 3.246 MB / 2.378 GB, free: 93.79 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004018/6.988, allocations: 1.914 MB / 2.38 GB, free: 93.06 MB / 0.8855 GB Notification: Performance of SimCode: time 1.743e-06/6.988, allocations: 0 / 2.38 GB, free: 93.06 MB / 0.8855 GB Notification: Performance of Templates: time 0.1654/7.154, allocations: 57.75 MB / 2.436 GB, free: 90.43 MB / 0.8855 GB