Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [: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.046/2.046, allocations: 253.1 MB / 260.4 MB, free: 7.555 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.002948/0.002948, allocations: 177.2 kB / 319.6 MB, free: 3.312 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.953/1.953, allocations: 205.4 MB / 0.5704 GB, free: 15.11 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.001336/0.001335, allocations: 96.19 kB / 0.6746 GB, free: 4.461 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.083e-05/1.102e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1993, allocations: 106.2 MB / 0.888 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.481/1.681, allocations: 391.1 MB / 1.27 GB, free: 247.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/1.681, allocations: 95.67 kB / 1.27 GB, free: 247.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.6103/2.291, allocations: 169.4 MB / 1.436 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.462e-05/2.292, allocations: 19.75 kB / 1.436 GB, free: 156.6 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001501/2.293, allocations: 0.7353 MB / 1.436 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/2.293, allocations: 8.031 kB / 1.436 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/2.293, allocations: 55.34 kB / 1.436 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/2.294, allocations: 427.4 kB / 1.437 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/2.295, allocations: 8 kB / 1.437 GB, free: 155.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.863e-05/2.295, allocations: 20 kB / 1.437 GB, free: 155.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004253/2.295, allocations: 128.8 kB / 1.437 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/2.296, allocations: 162.4 kB / 1.437 GB, free: 155 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/2.296, allocations: 0 / 1.437 GB, free: 155 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/2.296, allocations: 0 / 1.437 GB, free: 155 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/2.296, allocations: 4 kB / 1.437 GB, free: 155 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/2.298, allocations: 0.8701 MB / 1.438 GB, free: 154.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/2.298, allocations: 110.6 kB / 1.438 GB, free: 154 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/2.298, allocations: 56.84 kB / 1.438 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/2.298, allocations: 340.4 kB / 1.438 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/2.298, allocations: 30.56 kB / 1.438 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 2.835e-06/2.298, allocations: 0 / 1.438 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.000684/2.299, allocations: 165.8 kB / 1.439 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/2.299, allocations: 51.41 kB / 1.439 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000567/2.3, allocations: 357.1 kB / 1.439 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/2.3, allocations: 29.7 kB / 1.439 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/2.3, allocations: 172.4 kB / 1.439 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/2.3, allocations: 55.14 kB / 1.439 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/2.3, allocations: 0 / 1.439 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.786e-05/2.3, allocations: 350.8 kB / 1.44 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/2.3, allocations: 44 kB / 1.44 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/2.301, allocations: 162 kB / 1.44 GB, free: 152 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/2.301, allocations: 75.89 kB / 1.44 GB, free: 152 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.301, allocations: 0 / 1.44 GB, free: 152 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006778/2.302, allocations: 215.3 kB / 1.44 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.02e-05/2.302, allocations: 274.9 kB / 1.44 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/2.302, allocations: 0 / 1.44 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/2.302, allocations: 0 / 1.44 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/2.302, allocations: 63.89 kB / 1.44 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/2.302, allocations: 0 / 1.44 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007571/2.303, allocations: 39.81 kB / 1.44 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.453e-05/2.303, allocations: 12 kB / 1.44 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/2.303, allocations: 7.984 kB / 1.44 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005385/2.304, allocations: 138.2 kB / 1.441 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/2.304, allocations: 4 kB / 1.441 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.513e-06/2.304, allocations: 0 / 1.441 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004017/2.304, allocations: 51.97 kB / 1.441 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/2.304, allocations: 4 kB / 1.441 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006893/2.305, allocations: 47.73 kB / 1.441 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/2.305, allocations: 8 kB / 1.441 GB, free: 151.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001134/2.305, allocations: 108.9 kB / 1.441 GB, free: 151 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/2.305, allocations: 39.53 kB / 1.441 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008171/2.306, allocations: 220.9 kB / 1.441 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/2.306, allocations: 4 kB / 1.441 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/2.306, allocations: 3.984 kB / 1.441 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/2.306, allocations: 4 kB / 1.441 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/2.307, allocations: 0.6223 MB / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/2.307, allocations: 0 / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/2.308, allocations: 35.92 kB / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.866e-06/2.308, allocations: 3.906 kB / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/2.308, allocations: 8.109 kB / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/2.308, allocations: 8 kB / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/2.308, allocations: 0 / 1.442 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005854/2.308, allocations: 353.1 kB / 1.442 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/2.309, allocations: 132.6 kB / 1.442 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.291e-05/2.309, allocations: 7.906 kB / 1.442 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004546/2.309, allocations: 27.97 kB / 1.442 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/2.309, allocations: 11.98 kB / 1.442 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/2.309, allocations: 7.984 kB / 1.442 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0004287/2.31, allocations: 275.2 kB / 1.442 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001137/2.311, allocations: 230.8 kB / 1.443 GB, free: 148.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001279/2.312, allocations: 0.5 MB / 1.443 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006942/2.313, allocations: 234.8 kB / 1.443 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/2.313, allocations: 0 / 1.443 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/2.313, allocations: 75.86 kB / 1.443 GB, free: 148.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/2.315, allocations: 196.5 kB / 1.444 GB, free: 148 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/2.317, allocations: 0.4927 MB / 1.444 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004527/2.317, allocations: 0.8698 MB / 1.445 GB, free: 146.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.312e-06/2.317, allocations: 4 kB / 1.445 GB, free: 146.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.02461/2.342, allocations: 9.189 MB / 1.454 GB, free: 137.5 MB / 0.8698 GB