Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.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.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines") [: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.258/2.258, 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.001662/0.001661, allocations: 193 kB / 319.6 MB, free: 3.297 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.86/1.86, 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.001328/0.001328, allocations: 90.81 kB / 0.6746 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.06e-05/1.067e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2068, allocations: 106.2 MB / 0.888 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7027/0.9096, allocations: 183.4 MB / 1.067 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003321/0.91, allocations: 90.69 kB / 1.067 GB, free: 5.793 MB / 0.6823 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.7704/1.68, allocations: 146.4 MB / 1.21 GB, free: 10.91 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0004438/1.681, allocations: 79.94 kB / 1.21 GB, free: 10.83 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01507/1.696, allocations: 3.504 MB / 1.214 GB, free: 7.223 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.696, allocations: 8.031 kB / 1.214 GB, free: 7.215 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03211/1.728, allocations: 3.183 MB / 1.217 GB, free: 4.02 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/1.74, allocations: 2.327 MB / 1.219 GB, free: 1.621 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003594/1.741, allocations: 76 kB / 1.219 GB, free: 1.547 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002307/1.743, allocations: 136 kB / 1.219 GB, free: 1.414 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01936/1.762, allocations: 3.512 MB / 1.223 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/1.783, allocations: 3.575 MB / 1.226 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/1.783, allocations: 7.875 kB / 1.226 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00137/1.784, allocations: 4 kB / 1.226 GB, free: 10.17 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003673/1.785, allocations: 156.8 kB / 1.226 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05838/1.843, allocations: 14.02 MB / 1.24 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/1.847, allocations: 1.065 MB / 1.241 GB, free: 9.77 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003202/1.85, allocations: 1.038 MB / 1.242 GB, free: 8.734 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001932/1.85, allocations: 25.3 kB / 1.242 GB, free: 8.707 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003534/1.854, allocations: 1.288 MB / 1.243 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 5.741e-06/1.854, allocations: 0 / 1.243 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.4577/2.311, allocations: 7.726 MB / 1.251 GB, free: 177.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002769/2.312, allocations: 0.8974 MB / 1.252 GB, free: 176.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005713/2.317, allocations: 1.566 MB / 1.253 GB, free: 176.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.001007/2.319, allocations: 36.17 kB / 1.253 GB, free: 176.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001594/2.32, allocations: 0.9571 MB / 1.254 GB, free: 176.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.002241/2.322, allocations: 0.7838 MB / 1.255 GB, free: 176.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000556/2.323, allocations: 0 / 1.255 GB, free: 176.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002273/2.323, allocations: 399.6 kB / 1.256 GB, free: 175.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00533/2.329, allocations: 1.245 MB / 1.257 GB, free: 175.8 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005663/2.334, allocations: 1.623 MB / 1.258 GB, free: 175.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005292/2.34, allocations: 1.338 MB / 1.26 GB, free: 175.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-05/2.34, allocations: 0 / 1.26 GB, free: 175.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02577/2.366, allocations: 4.432 MB / 1.264 GB, free: 175.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006782/2.366, allocations: 2.269 MB / 1.266 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/2.366, allocations: 3.125 kB / 1.266 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0171/2.384, allocations: 1.628 MB / 1.268 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009679/2.393, allocations: 0.6365 MB / 1.268 GB, free: 172.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02683/2.42, allocations: 8.717 MB / 1.277 GB, free: 170.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008671/2.429, allocations: 412.8 kB / 1.277 GB, free: 170.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008887/2.43, allocations: 91.23 kB / 1.277 GB, free: 170.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/2.43, allocations: 6.188 kB / 1.277 GB, free: 170.8 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01508/2.445, allocations: 3.687 MB / 1.281 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.451e-05/2.445, allocations: 6.656 kB / 1.281 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007271/2.452, allocations: 1.427 MB / 1.282 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006575/2.459, allocations: 0.6823 MB / 1.283 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03037/2.489, allocations: 11.14 MB / 1.294 GB, free: 167.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007105/2.497, allocations: 412.1 kB / 1.294 GB, free: 167.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007491/2.497, allocations: 89.88 kB / 1.294 GB, free: 167.9 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.0009447/2.498, allocations: 163.5 kB / 1.295 GB, free: 167.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/2.499, allocations: 302.6 kB / 1.295 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/2.501, allocations: 334.3 kB / 1.295 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/2.501, allocations: 26.44 kB / 1.295 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.104e-05/2.501, allocations: 8.688 kB / 1.295 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.841e-05/2.501, allocations: 20.59 kB / 1.295 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006442/2.507, allocations: 2.834 MB / 1.298 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.673e-05/2.507, allocations: 3.5 kB / 1.298 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005692/2.513, allocations: 0.5641 MB / 1.299 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0109/2.524, allocations: 1.656 MB / 1.3 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006456/2.525, allocations: 17.2 kB / 1.3 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04467/2.569, allocations: 12.66 MB / 1.313 GB, free: 164.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/2.569, allocations: 0 / 1.313 GB, free: 164.6 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01991/2.589, allocations: 4.238 MB / 1.317 GB, free: 164.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003736/2.593, allocations: 0.6408 MB / 1.317 GB, free: 164 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/2.595, allocations: 8.938 kB / 1.317 GB, free: 164 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00917/2.604, allocations: 429.2 kB / 1.318 GB, free: 164 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/2.605, allocations: 230 kB / 1.318 GB, free: 164 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000536/2.606, allocations: 70.62 kB / 1.318 GB, free: 164 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.004163/2.61, allocations: 1.163 MB / 1.319 GB, free: 163.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.007313/2.617, allocations: 1.358 MB / 1.32 GB, free: 163.8 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008782/2.618, allocations: 148.7 kB / 1.321 GB, free: 163.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02516/2.643, allocations: 6.888 MB / 1.327 GB, free: 162.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/2.644, allocations: 2.562 kB / 1.327 GB, free: 162.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.01252/2.656, allocations: 2.486 MB / 1.33 GB, free: 162.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009786/2.666, allocations: 0.8269 MB / 1.331 GB, free: 162.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05772/2.724, allocations: 5.196 MB / 1.336 GB, free: 161.6 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007409/2.731, allocations: 2.414 MB / 1.338 GB, free: 160.8 MB / 0.8542 GB Notification: Performance of SimCode: time 1.844e-06/2.731, allocations: 0 / 1.338 GB, free: 160.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.2409/2.972, allocations: 85.19 MB / 1.421 GB, free: 124.3 MB / 0.8542 GB