Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.188/1.188, allocations: 249.4 MB / 256.7 MB, free: 7.016 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009666/0.0009666, allocations: 177.2 kB / 316 MB, free: 3.551 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.013/1.013, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007737/0.0007737, allocations: 75.45 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.4e-06/5.42e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1374, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4166/0.554, allocations: 174.4 MB / 1.055 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.5543, allocations: 94.06 kB / 1.055 GB, free: 14.92 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.07822/0.6325, allocations: 36.25 MB / 1.09 GB, free: 1.164 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.055e-05/0.6325, allocations: 19.94 kB / 1.09 GB, free: 1.145 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001312/0.6339, allocations: 0.9093 MB / 1.091 GB, free: 236 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.6339, allocations: 8.031 kB / 1.091 GB, free: 228 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003288/0.6372, allocations: 0.6242 MB / 1.092 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009549/0.6382, allocations: 0.5862 MB / 1.092 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.6382, allocations: 16 kB / 1.092 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.047e-05/0.6383, allocations: 32 kB / 1.092 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009665/0.6393, allocations: 0.7141 MB / 1.093 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.6403, allocations: 0.8127 MB / 1.094 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.6403, allocations: 0 / 1.094 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.956e-05/0.6404, allocations: 3.938 kB / 1.094 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-05/0.6404, allocations: 44.97 kB / 1.094 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003692/0.6441, allocations: 3.448 MB / 1.097 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.6446, allocations: 268.3 kB / 1.098 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.6448, allocations: 176.1 kB / 1.098 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.6448, allocations: 7.984 kB / 1.098 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.6449, allocations: 37.44 kB / 1.098 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.6449, allocations: 4 kB / 1.098 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of matching and sorting (n=43): time 0.002523/0.6474, allocations: 1.14 MB / 1.099 GB, free: 9.301 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.6475, allocations: 132.5 kB / 1.099 GB, free: 9.141 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004011/0.6479, allocations: 393.6 kB / 1.099 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.6479, allocations: 25.7 kB / 1.099 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.6481, allocations: 298.6 kB / 1.1 GB, free: 8.543 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.6482, allocations: 141.4 kB / 1.1 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.6482, allocations: 0 / 1.1 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6484, allocations: 365.2 kB / 1.1 GB, free: 8.074 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.6486, allocations: 184.6 kB / 1.1 GB, free: 7.961 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.649, allocations: 306.8 kB / 1.101 GB, free: 7.684 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.6493, allocations: 226 kB / 1.101 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.6493, allocations: 0 / 1.101 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001412/0.6507, allocations: 0.7457 MB / 1.102 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003612/0.6511, allocations: 1.224 MB / 1.103 GB, free: 5.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.6511, allocations: 4 kB / 1.103 GB, free: 5.621 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009379/0.652, allocations: 239.4 kB / 1.103 GB, free: 5.406 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006421/0.6527, allocations: 127.8 kB / 1.103 GB, free: 5.281 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/0.6566, allocations: 5.71 MB / 1.109 GB, free: 15.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005868/0.6572, allocations: 56.05 kB / 1.109 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.6573, allocations: 19.81 kB / 1.109 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.49e-06/0.6573, allocations: 4 kB / 1.109 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001226/0.6585, allocations: 1.033 MB / 1.11 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.6586, allocations: 4 kB / 1.11 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003229/0.6589, allocations: 134.8 kB / 1.11 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.6596, allocations: 143.2 kB / 1.11 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004192/0.6638, allocations: 7.469 MB / 1.117 GB, free: 6.152 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005608/0.6643, allocations: 52.11 kB / 1.117 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.6644, allocations: 23.36 kB / 1.118 GB, free: 6.082 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.6645, allocations: 124.1 kB / 1.118 GB, free: 5.957 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.6646, allocations: 55.34 kB / 1.118 GB, free: 5.902 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.6648, allocations: 66.34 kB / 1.118 GB, free: 5.863 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.6648, allocations: 4 kB / 1.118 GB, free: 5.859 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.6648, allocations: 0 / 1.118 GB, free: 5.859 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.6648, allocations: 7.906 kB / 1.118 GB, free: 5.852 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006653/0.6655, allocations: 0.5665 MB / 1.118 GB, free: 5.383 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.6655, allocations: 3.938 kB / 1.118 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005294/0.666, allocations: 109.7 kB / 1.118 GB, free: 5.273 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008386/0.6669, allocations: 244.4 kB / 1.119 GB, free: 5.051 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.6669, allocations: 0 / 1.119 GB, free: 5.051 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005186/0.6721, allocations: 7.926 MB / 1.126 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.6721, allocations: 0 / 1.126 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001277/0.6734, allocations: 0.746 MB / 1.127 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.6736, allocations: 184.2 kB / 1.127 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.63e-05/0.6737, allocations: 0 / 1.127 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/0.6743, allocations: 47.95 kB / 1.127 GB, free: 11.58 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.6744, allocations: 27.95 kB / 1.127 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.6744, allocations: 12 kB / 1.127 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003075/0.6747, allocations: 303 kB / 1.128 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0009086/0.6756, allocations: 252 kB / 1.128 GB, free: 11 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001851/0.6758, allocations: 127.1 kB / 1.128 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.002065/0.6779, allocations: 1.699 MB / 1.13 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6779, allocations: 0 / 1.13 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0008315/0.6787, allocations: 0.858 MB / 1.131 GB, free: 8.16 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.6795, allocations: 174.1 kB / 1.131 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.6813, allocations: 0.9175 MB / 1.132 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006202/0.6819, allocations: 1.025 MB / 1.133 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of SimCode: time 3.01e-07/0.6819, allocations: 0 / 1.133 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of Templates: time 0.0197/0.7016, allocations: 14.06 MB / 1.146 GB, free: 8.051 MB / 0.7605 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)