Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") [: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 1.994/1.994, allocations: 253.1 MB / 260.4 MB, free: 7.512 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.00164/0.00164, allocations: 173.3 kB / 319.6 MB, free: 3.32 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.919/1.919, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.00176/0.00176, allocations: 92.7 kB / 0.6746 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.138e-05/1.155e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1953, allocations: 106.3 MB / 0.888 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.526/1.721, allocations: 440.4 MB / 1.318 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004306/1.722, allocations: 92.3 kB / 1.318 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.137/6.858, allocations: 1.104 GB / 2.422 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004151/6.859, allocations: 54.75 kB / 2.422 GB, free: 125.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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.007858/6.867, allocations: 2.197 MB / 2.424 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/6.867, allocations: 7.656 kB / 2.424 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003333/6.87, allocations: 387.8 kB / 2.425 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/6.882, allocations: 2.492 MB / 2.427 GB, free: 124 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/6.882, allocations: 42.19 kB / 2.427 GB, free: 124 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006607/6.883, allocations: 80.78 kB / 2.427 GB, free: 124 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00369/6.886, allocations: 0.8706 MB / 2.428 GB, free: 124 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004009/6.89, allocations: 1.181 MB / 2.429 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.229e-05/6.89, allocations: 2.969 kB / 2.429 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002015/6.891, allocations: 7.156 kB / 2.429 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.587e-05/6.891, allocations: 34.38 kB / 2.429 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0155/6.906, allocations: 7.662 MB / 2.437 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/6.908, allocations: 0.6607 MB / 2.437 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009083/6.909, allocations: 352.6 kB / 2.438 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006097/6.915, allocations: 2.155 MB / 2.44 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009535/6.916, allocations: 374.4 kB / 2.44 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=72): time 5.099e-06/6.916, allocations: 0 / 2.44 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72): time 0.004016/6.92, allocations: 0.8587 MB / 2.441 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/6.921, allocations: 164.8 kB / 2.441 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002926/6.924, allocations: 1.2 MB / 2.442 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003484/6.924, allocations: 32.48 kB / 2.442 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007076/6.925, allocations: 0.5868 MB / 2.443 GB, free: 117 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004234/6.925, allocations: 241.5 kB / 2.443 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.586e-05/6.925, allocations: 0 / 2.443 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001137/6.925, allocations: 348.5 kB / 2.443 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008096/6.926, allocations: 297.7 kB / 2.444 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/6.927, allocations: 0.6743 MB / 2.444 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/6.93, allocations: 0.489 MB / 2.445 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/6.93, allocations: 3 kB / 2.445 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.003969/6.934, allocations: 1.148 MB / 2.446 GB, free: 115.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008842/6.934, allocations: 3.696 MB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.219e-05/6.935, allocations: 15.36 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.05e-05/6.935, allocations: 15.53 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/6.937, allocations: 269.6 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/6.937, allocations: 16.69 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/6.939, allocations: 171.9 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/6.94, allocations: 50.92 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/6.94, allocations: 3.969 kB / 2.45 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003395/6.943, allocations: 0.9271 MB / 2.451 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.133e-05/6.943, allocations: 17.38 kB / 2.451 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/6.943, allocations: 12.66 kB / 2.451 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/6.945, allocations: 260 kB / 2.451 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/6.945, allocations: 22 kB / 2.451 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/6.948, allocations: 148 kB / 2.451 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/6.948, allocations: 59.89 kB / 2.451 GB, free: 111.9 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * 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.0004408/6.949, allocations: 137.7 kB / 2.452 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004151/6.949, allocations: 170.5 kB / 2.452 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/6.953, allocations: 1.093 MB / 2.453 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/6.953, allocations: 11.44 kB / 2.453 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/6.953, allocations: 1.969 kB / 2.453 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002324/6.956, allocations: 0.7414 MB / 2.454 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006806/6.962, allocations: 2.206 MB / 2.456 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/6.963, allocations: 0 / 2.456 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/6.964, allocations: 172.5 kB / 2.456 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002527/6.964, allocations: 30.05 kB / 2.456 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.136e-05/6.964, allocations: 15.17 kB / 2.456 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/6.966, allocations: 1.256 MB / 2.457 GB, free: 110 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/6.966, allocations: 4.281 kB / 2.457 GB, free: 110 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004187/6.97, allocations: 1.466 MB / 2.459 GB, free: 109.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/6.971, allocations: 357.2 kB / 2.459 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003747/6.972, allocations: 3.875 kB / 2.459 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/6.974, allocations: 104.8 kB / 2.459 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/6.974, allocations: 49.91 kB / 2.459 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/6.974, allocations: 35.81 kB / 2.459 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.002047/6.976, allocations: 0.9026 MB / 2.46 GB, free: 109.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.005563/6.982, allocations: 1.08 MB / 2.461 GB, free: 109.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003252/6.985, allocations: 1.14 MB / 2.462 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004887/6.99, allocations: 1.443 MB / 2.464 GB, free: 108.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/6.99, allocations: 1.031 kB / 2.464 GB, free: 108.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001222/6.991, allocations: 489.1 kB / 2.464 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006954/6.998, allocations: 0.7036 MB / 2.465 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008954/7.007, allocations: 2.426 MB / 2.467 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/7.01, allocations: 1.606 MB / 2.469 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.683e-06/7.01, allocations: 0 / 2.469 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of Templates: time 0.1241/7.134, allocations: 39.8 MB / 2.508 GB, free: 92.38 MB / 0.8855 GB