Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Media.Examples.WaterDerivativeCheck") [: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.294/2.294, allocations: 253.1 MB / 260.4 MB, free: 7.527 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.001592/0.001592, allocations: 189.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.876/1.876, allocations: 205.4 MB / 0.5704 GB, free: 15.07 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.001378/0.001378, allocations: 89.7 kB / 0.6746 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.748e-06/1.003e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2772, allocations: 106.2 MB / 0.888 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.281/1.559, allocations: 359.5 MB / 1.239 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/1.559, allocations: 68.84 kB / 1.239 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.04562/1.605, allocations: 12.39 MB / 1.251 GB, free: 1.133 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.933e-06/1.605, allocations: 0 / 1.251 GB, free: 1.133 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004156/1.605, allocations: 337.7 kB / 1.252 GB, free: 0.7617 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/1.605, allocations: 8.031 kB / 1.252 GB, free: 0.7539 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/1.605, allocations: 7.984 kB / 1.252 GB, free: 0.7461 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/1.605, allocations: 175 kB / 1.252 GB, free: 0.5352 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/1.605, allocations: 3.906 kB / 1.252 GB, free: 0.5312 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/1.605, allocations: 4 kB / 1.252 GB, free: 0.5273 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.779e-05/1.606, allocations: 15.05 kB / 1.252 GB, free: 0.5156 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/1.606, allocations: 48.8 kB / 1.252 GB, free: 476 kB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/1.606, allocations: 0 / 1.252 GB, free: 476 kB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/1.606, allocations: 0 / 1.252 GB, free: 476 kB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/1.606, allocations: 0 / 1.252 GB, free: 476 kB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/1.606, allocations: 147.6 kB / 1.252 GB, free: 296 kB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 9.785e-05/1.606, allocations: 43.84 kB / 1.252 GB, free: 252 kB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.87e-05/1.606, allocations: 12.84 kB / 1.252 GB, free: 236 kB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3449/1.951, allocations: 0.6027 MB / 1.253 GB, free: 416.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/1.951, allocations: 30.56 kB / 1.253 GB, free: 416.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 3.046e-06/1.951, allocations: 3.656 kB / 1.253 GB, free: 416.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0006545/1.952, allocations: 283 kB / 1.253 GB, free: 416.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/1.952, allocations: 51.41 kB / 1.253 GB, free: 416.4 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.756e-05/1.952, allocations: 98.77 kB / 1.253 GB, free: 416.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/1.952, allocations: 25.7 kB / 1.253 GB, free: 416.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/1.952, allocations: 86.61 kB / 1.253 GB, free: 416.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/1.952, allocations: 32.41 kB / 1.253 GB, free: 416.2 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/1.952, allocations: 3.812 kB / 1.253 GB, free: 416.2 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.049e-05/1.952, allocations: 314.3 kB / 1.254 GB, free: 415.9 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.467e-05/1.952, allocations: 11.78 kB / 1.254 GB, free: 415.9 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.407e-05/1.952, allocations: 48.5 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.152e-05/1.952, allocations: 19.42 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/1.952, allocations: 0 / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001685/1.952, allocations: 83.66 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.952, allocations: 7.844 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/1.952, allocations: 0 / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/1.953, allocations: 3.938 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/1.953, allocations: 21 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/1.953, allocations: 1.875 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.003e-05/1.953, allocations: 7.375 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/1.953, allocations: 6.766 kB / 1.254 GB, free: 415.8 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.571e-05/1.953, allocations: 109.8 kB / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/1.953, allocations: 3.875 kB / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/1.953, allocations: 8 kB / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/1.953, allocations: 0 / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/1.953, allocations: 15.02 kB / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/1.953, allocations: 1.031 kB / 1.254 GB, free: 415.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/1.953, allocations: 144.8 kB / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/1.953, allocations: 3.938 kB / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/1.954, allocations: 15.64 kB / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/1.954, allocations: 0 / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/1.954, allocations: 0 / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/1.954, allocations: 0 / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.954, allocations: 0 / 1.254 GB, free: 415.5 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002181/1.954, allocations: 177 kB / 1.254 GB, free: 415.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/1.954, allocations: 81.02 kB / 1.254 GB, free: 415.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/1.954, allocations: 9.25 kB / 1.254 GB, free: 415.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/1.954, allocations: 3.609 kB / 1.254 GB, free: 415.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.859e-05/1.954, allocations: 3.469 kB / 1.254 GB, free: 415.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/1.954, allocations: 2.719 kB / 1.254 GB, free: 415.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3e-05/1.954, allocations: 83.12 kB / 1.254 GB, free: 415.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003522/1.955, allocations: 13.34 kB / 1.254 GB, free: 415.2 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001931/1.955, allocations: 118.5 kB / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001381/1.955, allocations: 38.31 kB / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.955, allocations: 0 / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.508e-05/1.955, allocations: 19.52 kB / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/1.955, allocations: 6.281 kB / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007156/1.956, allocations: 254.1 kB / 1.255 GB, free: 415.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/1.956, allocations: 0.6996 MB / 1.255 GB, free: 414.3 MB / 0.8542 GB Notification: Performance of SimCode: time 8.61e-07/1.956, allocations: 0 / 1.255 GB, free: 414.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.003941/1.96, allocations: 0.8023 MB / 1.256 GB, free: 414.3 MB / 0.8542 GB