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.199/2.199, allocations: 387.1 MB / 399.7 MB, free: 9.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.0009824/0.0009821, allocations: 187.6 kB / 492.3 MB, free: 0.625 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.513/1.513, allocations: 221.3 MB / 0.7871 GB, free: 12.94 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.0008511/0.000851, allocations: 99.81 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.862e-05/2.864e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2818, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9749/1.257, allocations: 191.9 MB / 1.4 GB, free: 8.648 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/1.257, allocations: 85.83 kB / 1.4 GB, free: 8.605 MB / 0.823 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.1094/1.367, allocations: 49.92 MB / 1.449 GB, free: 14.97 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.273e-06/1.367, allocations: 0 / 1.449 GB, free: 14.97 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.937e-05/1.367, allocations: 20 kB / 1.449 GB, free: 14.95 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001501/1.368, allocations: 0.9035 MB / 1.45 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/1.368, allocations: 8.031 kB / 1.45 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003307/1.372, allocations: 0.6288 MB / 1.45 GB, free: 13.42 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/1.373, allocations: 0.5874 MB / 1.451 GB, free: 12.88 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/1.373, allocations: 39.06 kB / 1.451 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.356e-05/1.373, allocations: 49.75 kB / 1.451 GB, free: 12.82 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/1.374, allocations: 0.8728 MB / 1.452 GB, free: 12.17 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/1.374, allocations: 0 / 1.452 GB, free: 12.17 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.017e-05/1.374, allocations: 26.12 kB / 1.452 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.415e-05/1.374, allocations: 41.28 kB / 1.452 GB, free: 12.12 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/1.375, allocations: 0.7327 MB / 1.452 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/1.38, allocations: 3.557 MB / 1.456 GB, free: 8.281 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007741/1.38, allocations: 384.2 kB / 1.456 GB, free: 8.008 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000248/1.381, allocations: 183.2 kB / 1.457 GB, free: 7.891 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/1.381, allocations: 4.531 kB / 1.457 GB, free: 7.887 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/1.381, allocations: 33.25 kB / 1.457 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/1.381, allocations: 7.938 kB / 1.457 GB, free: 7.84 MB / 0.8698 GB Notification: Performance of matching and sorting (n=43): time 0.004694/1.385, allocations: 1.6 MB / 1.458 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/1.386, allocations: 132.5 kB / 1.458 GB, free: 6.305 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006136/1.386, allocations: 0.4911 MB / 1.459 GB, free: 5.918 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/1.386, allocations: 37.45 kB / 1.459 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/1.386, allocations: 356.9 kB / 1.459 GB, free: 5.641 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/1.387, allocations: 143 kB / 1.459 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/1.387, allocations: 11.5 kB / 1.459 GB, free: 5.512 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.387, allocations: 382.9 kB / 1.46 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/1.387, allocations: 186.6 kB / 1.46 GB, free: 5.035 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/1.387, allocations: 312.8 kB / 1.46 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/1.388, allocations: 226.4 kB / 1.46 GB, free: 4.602 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.388, allocations: 0 / 1.46 GB, free: 4.602 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001581/1.389, allocations: 0.7833 MB / 1.461 GB, free: 3.973 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006148/1.39, allocations: 1.238 MB / 1.462 GB, free: 2.664 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/1.39, allocations: 4.047 kB / 1.462 GB, free: 2.66 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/1.391, allocations: 254 kB / 1.463 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006675/1.392, allocations: 131.5 kB / 1.463 GB, free: 2.301 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005243/1.397, allocations: 5.895 MB / 1.468 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008065/1.398, allocations: 55.67 kB / 1.468 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/1.398, allocations: 19.75 kB / 1.468 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/1.398, allocations: 4 kB / 1.468 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002054/1.4, allocations: 0.9018 MB / 1.469 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/1.4, allocations: 4 kB / 1.469 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009458/1.401, allocations: 209.7 kB / 1.47 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/1.402, allocations: 131 kB / 1.47 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005888/1.408, allocations: 8.101 MB / 1.478 GB, free: 2.617 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007423/1.409, allocations: 54.27 kB / 1.478 GB, free: 2.57 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/1.409, allocations: 22.62 kB / 1.478 GB, free: 2.555 MB / 0.8855 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.0002179/1.409, allocations: 146.4 kB / 1.478 GB, free: 2.422 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/1.409, allocations: 71.16 kB / 1.478 GB, free: 2.352 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/1.409, allocations: 75.03 kB / 1.478 GB, free: 2.316 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/1.409, allocations: 4 kB / 1.478 GB, free: 2.312 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/1.409, allocations: 8 kB / 1.478 GB, free: 2.305 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/1.41, allocations: 0 / 1.478 GB, free: 2.305 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009659/1.41, allocations: 0.6503 MB / 1.479 GB, free: 1.766 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/1.41, allocations: 0 / 1.479 GB, free: 1.766 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/1.411, allocations: 95.91 kB / 1.479 GB, free: 1.672 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008318/1.412, allocations: 245.9 kB / 1.479 GB, free: 1.449 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/1.412, allocations: 3.688 kB / 1.479 GB, free: 1.449 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006174/1.418, allocations: 8.371 MB / 1.487 GB, free: 8.793 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.418, allocations: 8 kB / 1.487 GB, free: 8.785 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/1.42, allocations: 0.7757 MB / 1.488 GB, free: 8.133 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/1.42, allocations: 184.6 kB / 1.488 GB, free: 7.957 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/1.42, allocations: 7.188 kB / 1.488 GB, free: 7.957 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005614/1.421, allocations: 63.7 kB / 1.488 GB, free: 7.902 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/1.421, allocations: 35.39 kB / 1.488 GB, free: 7.871 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/1.421, allocations: 15.92 kB / 1.488 GB, free: 7.859 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0006228/1.422, allocations: 397.7 kB / 1.489 GB, free: 7.566 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.3e-07/1.422, allocations: 0 / 1.489 GB, free: 7.566 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00125/1.423, allocations: 292.9 kB / 1.489 GB, free: 7.305 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 () * 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.0002428/1.423, allocations: 127.4 kB / 1.489 GB, free: 7.18 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002586/1.426, allocations: 1.847 MB / 1.491 GB, free: 5.496 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/1.426, allocations: 3.938 kB / 1.491 GB, free: 5.492 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0009932/1.427, allocations: 0.918 MB / 1.492 GB, free: 4.598 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/1.428, allocations: 202.5 kB / 1.492 GB, free: 4.445 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/1.43, allocations: 0.9081 MB / 1.493 GB, free: 3.629 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006194/1.43, allocations: 0.9848 MB / 1.494 GB, free: 2.629 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0008307/1.431, allocations: 189.3 kB / 1.494 GB, free: 2.441 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/1.431, allocations: 38.94 kB / 1.494 GB, free: 2.406 MB / 0.9011 GB Notification: Performance of SimCode: time 6.01e-07/1.431, allocations: 0 / 1.494 GB, free: 2.406 MB / 0.9011 GB Notification: Performance of Templates: time 0.02415/1.456, allocations: 13.22 MB / 1.507 GB, free: 5.336 MB / 0.9167 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)