Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.336/2.336, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 175.4 kB / 498.1 MB, free: 5.754 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.664/1.664, allocations: 223.2 MB / 0.7948 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 106.8 kB / 0.9346 GB, free: 7.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004508/0.0004509, allocations: 9.812 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3648, allocations: 142.3 MB / 1.223 GB, free: 89.61 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/1.416, allocations: 192 MB / 1.41 GB, free: 179.8 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/1.417, allocations: 93.28 kB / 1.41 GB, free: 179.8 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 - DAE generated: time 0.1175/1.534, allocations: 50.22 MB / 1.46 GB, free: 154.4 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.032e-06/1.534, allocations: 0 / 1.46 GB, free: 154.4 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.232e-05/1.534, allocations: 16 kB / 1.46 GB, free: 154.4 MB / 0.9011 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.001652/1.536, allocations: 1.005 MB / 1.461 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/1.536, allocations: 8.031 kB / 1.461 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003032/1.539, allocations: 0.631 MB / 1.461 GB, free: 152.7 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/1.54, allocations: 0.5911 MB / 1.462 GB, free: 152 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/1.54, allocations: 41.3 kB / 1.462 GB, free: 152 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.839e-05/1.54, allocations: 51.95 kB / 1.462 GB, free: 151.9 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/1.542, allocations: 1.002 MB / 1.463 GB, free: 150.9 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/1.542, allocations: 0 / 1.463 GB, free: 150.9 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/1.542, allocations: 35.92 kB / 1.463 GB, free: 150.9 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.263e-05/1.542, allocations: 41.3 kB / 1.463 GB, free: 150.8 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/1.544, allocations: 1.008 MB / 1.464 GB, free: 149.8 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003575/1.547, allocations: 3.552 MB / 1.467 GB, free: 146 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/1.549, allocations: 0.5104 MB / 1.468 GB, free: 145.4 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/1.549, allocations: 11.97 kB / 1.468 GB, free: 145.4 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/1.549, allocations: 42.56 kB / 1.468 GB, free: 145.4 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=31): time 1.233e-06/1.549, allocations: 0 / 1.468 GB, free: 145.4 MB / 0.9011 GB Notification: Performance of matching and sorting (n=43): time 0.006287/1.555, allocations: 2.283 MB / 1.47 GB, free: 143 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/1.555, allocations: 136.5 kB / 1.47 GB, free: 142.9 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005647/1.556, allocations: 0.4994 MB / 1.471 GB, free: 142.4 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/1.556, allocations: 33.7 kB / 1.471 GB, free: 142.3 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/1.556, allocations: 352.2 kB / 1.471 GB, free: 142 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.55e-05/1.556, allocations: 153.8 kB / 1.471 GB, free: 141.8 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/1.556, allocations: 11.94 kB / 1.471 GB, free: 141.8 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.874e-05/1.556, allocations: 378.7 kB / 1.472 GB, free: 141.4 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/1.557, allocations: 272.9 kB / 1.472 GB, free: 141.2 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/1.557, allocations: 400.2 kB / 1.472 GB, free: 140.7 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005907/1.558, allocations: 313.7 kB / 1.473 GB, free: 140.4 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.558, allocations: 4 kB / 1.473 GB, free: 140.4 MB / 0.9011 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00194/1.56, allocations: 0.9587 MB / 1.473 GB, free: 139.4 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002503/1.56, allocations: 1.222 MB / 1.475 GB, free: 138.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/1.56, allocations: 4 kB / 1.475 GB, free: 138.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008869/1.561, allocations: 256.9 kB / 1.475 GB, free: 137.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/1.562, allocations: 127.8 kB / 1.475 GB, free: 137.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/1.565, allocations: 5.971 MB / 1.481 GB, free: 131.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007157/1.566, allocations: 56.02 kB / 1.481 GB, free: 131.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/1.566, allocations: 23.98 kB / 1.481 GB, free: 131.2 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/1.566, allocations: 4 kB / 1.481 GB, free: 131.2 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001974/1.568, allocations: 1.074 MB / 1.482 GB, free: 130 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.568, allocations: 0 / 1.482 GB, free: 130 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/1.568, allocations: 213.6 kB / 1.482 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/1.569, allocations: 131.8 kB / 1.482 GB, free: 129.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004427/1.574, allocations: 8.199 MB / 1.49 GB, free: 120.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006832/1.574, allocations: 55.95 kB / 1.49 GB, free: 120.6 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/1.574, allocations: 28 kB / 1.49 GB, free: 120.6 MB / 0.9011 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 () * Number of clocked 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.0004739/1.575, allocations: 305 kB / 1.491 GB, free: 120.3 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/1.575, allocations: 67.25 kB / 1.491 GB, free: 120.2 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001778/1.575, allocations: 74.38 kB / 1.491 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/1.575, allocations: 7.938 kB / 1.491 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.575, allocations: 4 kB / 1.491 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.575, allocations: 7.984 kB / 1.491 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008069/1.576, allocations: 0.6455 MB / 1.491 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/1.576, allocations: 0 / 1.491 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/1.576, allocations: 100.2 kB / 1.492 GB, free: 119.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008171/1.577, allocations: 252.8 kB / 1.492 GB, free: 119.1 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/1.577, allocations: 7.938 kB / 1.492 GB, free: 119.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004719/1.582, allocations: 8.486 MB / 1.5 GB, free: 109.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.582, allocations: 0 / 1.5 GB, free: 109.8 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/1.584, allocations: 0.956 MB / 1.501 GB, free: 108.8 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/1.584, allocations: 180.3 kB / 1.501 GB, free: 108.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/1.585, allocations: 11.95 kB / 1.501 GB, free: 108.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005417/1.585, allocations: 47.95 kB / 1.501 GB, free: 108.5 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/1.585, allocations: 43.94 kB / 1.501 GB, free: 108.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/1.585, allocations: 12 kB / 1.501 GB, free: 108.5 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0005457/1.586, allocations: 403.1 kB / 1.502 GB, free: 108.1 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/1.586, allocations: 0 / 1.502 GB, free: 108.1 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001271/1.587, allocations: 295.9 kB / 1.502 GB, free: 107.8 MB / 0.9011 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 () * Number of clocked 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.0002541/1.587, allocations: 123.2 kB / 1.502 GB, free: 107.7 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.003293/1.591, allocations: 2.098 MB / 1.504 GB, free: 105.4 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.591, allocations: 3.938 kB / 1.504 GB, free: 105.4 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.001161/1.592, allocations: 1.02 MB / 1.505 GB, free: 104.3 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009662/1.593, allocations: 201.9 kB / 1.505 GB, free: 104.2 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/1.595, allocations: 1.51 MB / 1.507 GB, free: 102.6 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/1.596, allocations: 0.9937 MB / 1.508 GB, free: 101.6 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0006262/1.597, allocations: 149.4 kB / 1.508 GB, free: 101.4 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/1.597, allocations: 47.42 kB / 1.508 GB, free: 101.4 MB / 0.9011 GB Notification: Performance of SimCode: time 5.71e-07/1.597, allocations: 0 / 1.508 GB, free: 101.4 MB / 0.9011 GB Notification: Performance of Templates: time 0.02073/1.617, allocations: 12.39 MB / 1.52 GB, free: 89.16 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)