Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [: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.059/2.059, allocations: 253.1 MB / 260.4 MB, free: 7.434 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.001665/0.001664, allocations: 181.2 kB / 319.6 MB, free: 3.324 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.872/1.872, 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.001372/0.001372, allocations: 94.59 kB / 0.6746 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.032e-05/1.043e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2314, allocations: 106.2 MB / 0.888 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.611/1.843, allocations: 424.7 MB / 1.303 GB, free: 253.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003856/1.843, allocations: 99.02 kB / 1.303 GB, free: 253.9 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.152/5.996, allocations: 0.9446 GB / 2.248 GB, free: 1.133 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0005498/5.996, allocations: 80.8 kB / 2.248 GB, free: 1.059 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.009135/6.005, allocations: 2.536 MB / 2.25 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/6.005, allocations: 12.03 kB / 2.25 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/6.007, allocations: 316.3 kB / 2.25 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/6.018, allocations: 2.427 MB / 2.253 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.869e-05/6.018, allocations: 48 kB / 2.253 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005318/6.018, allocations: 107.9 kB / 2.253 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00409/6.022, allocations: 0.9899 MB / 2.254 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004869/6.027, allocations: 1.294 MB / 2.255 GB, free: 9.215 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.363e-05/6.027, allocations: 4 kB / 2.255 GB, free: 9.211 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/6.028, allocations: 0 / 2.255 GB, free: 9.211 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.402e-05/6.028, allocations: 47.94 kB / 2.255 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01963/6.047, allocations: 7.969 MB / 2.263 GB, free: 0.7969 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/6.049, allocations: 419.2 kB / 2.263 GB, free: 396 kB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008309/6.05, allocations: 314.7 kB / 2.264 GB, free: 76 kB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3798/6.429, allocations: 0.7531 MB / 2.264 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/6.429, allocations: 41.97 kB / 2.264 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 4.288e-06/6.429, allocations: 0 / 2.264 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.002775/6.432, allocations: 0.7204 MB / 2.265 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/6.432, allocations: 59.34 kB / 2.265 GB, free: 182.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004261/6.437, allocations: 1.67 MB / 2.267 GB, free: 182 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003358/6.437, allocations: 29.67 kB / 2.267 GB, free: 182 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007915/6.438, allocations: 0.7584 MB / 2.268 GB, free: 181.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000349/6.438, allocations: 204 kB / 2.268 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/6.438, allocations: 0 / 2.268 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001118/6.438, allocations: 348.2 kB / 2.268 GB, free: 181.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008607/6.439, allocations: 303.7 kB / 2.268 GB, free: 181.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/6.44, allocations: 0.7628 MB / 2.269 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/6.442, allocations: 457.5 kB / 2.27 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/6.442, allocations: 7.781 kB / 2.27 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003741/6.446, allocations: 1.121 MB / 2.271 GB, free: 180.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006762/6.447, allocations: 3.145 MB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/6.447, allocations: 6.75 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.648e-05/6.447, allocations: 16.09 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/6.449, allocations: 261.7 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/6.449, allocations: 21.95 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/6.453, allocations: 199.9 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003245/6.453, allocations: 55.88 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/6.453, allocations: 3.062 kB / 2.274 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002697/6.456, allocations: 0.8551 MB / 2.275 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/6.456, allocations: 8.156 kB / 2.275 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/6.456, allocations: 18.69 kB / 2.275 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/6.458, allocations: 256.7 kB / 2.275 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/6.458, allocations: 19.92 kB / 2.275 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003345/6.461, allocations: 173.5 kB / 2.276 GB, free: 177.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/6.462, allocations: 50.38 kB / 2.276 GB, free: 177.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * 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.000395/6.462, allocations: 135.7 kB / 2.276 GB, free: 177.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007818/6.463, allocations: 204.3 kB / 2.276 GB, free: 177 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/6.466, allocations: 0.8518 MB / 2.277 GB, free: 176.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/6.466, allocations: 6.562 kB / 2.277 GB, free: 176.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/6.466, allocations: 6.656 kB / 2.277 GB, free: 176.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001545/6.468, allocations: 0.6603 MB / 2.277 GB, free: 176.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007259/6.475, allocations: 2.385 MB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/6.475, allocations: 3.906 kB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/6.476, allocations: 153.7 kB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/6.476, allocations: 3.812 kB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-05/6.476, allocations: 10.88 kB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/6.476, allocations: 7 kB / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/6.476, allocations: 0 / 2.28 GB, free: 176.4 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003311/6.48, allocations: 1.282 MB / 2.281 GB, free: 176 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/6.482, allocations: 428.2 kB / 2.282 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001066/6.483, allocations: 0 / 2.282 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003523/6.486, allocations: 149.1 kB / 2.282 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/6.487, allocations: 47.25 kB / 2.282 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/6.487, allocations: 39.72 kB / 2.282 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.003714/6.491, allocations: 1.229 MB / 2.283 GB, free: 175.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.007388/6.498, allocations: 1.218 MB / 2.284 GB, free: 175.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.003015/6.501, allocations: 1.178 MB / 2.285 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003682/6.505, allocations: 1.318 MB / 2.287 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/6.505, allocations: 0 / 2.287 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007681/6.506, allocations: 310.3 kB / 2.287 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/6.518, allocations: 1.24 MB / 2.288 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009665/6.528, allocations: 2.841 MB / 2.291 GB, free: 174.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002541/6.531, allocations: 1.813 MB / 2.293 GB, free: 173.9 MB / 0.8855 GB Notification: Performance of SimCode: time 2.184e-06/6.531, allocations: 0 / 2.293 GB, free: 173.9 MB / 0.8855 GB Notification: Performance of Templates: time 0.1252/6.656, allocations: 48.48 MB / 2.34 GB, free: 172.7 MB / 0.8855 GB