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.285/2.285, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001064/0.001064, allocations: 196.5 kB / 487.4 MB, free: 5.07 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.477/1.477, allocations: 221.5 MB / 0.7824 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009079/0.000908, allocations: 103.8 kB / 0.9219 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.885e-05/1.886e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2918, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9539/1.246, allocations: 191.3 MB / 1.393 GB, free: 14.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/1.246, allocations: 86.67 kB / 1.393 GB, free: 14.14 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.1113/1.357, allocations: 49.68 MB / 1.441 GB, free: 8.277 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.532e-06/1.357, allocations: 0 / 1.441 GB, free: 8.277 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.694e-05/1.358, allocations: 19.98 kB / 1.441 GB, free: 8.258 MB / 0.8542 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.002356/1.36, allocations: 0.9018 MB / 1.442 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/1.36, allocations: 8.031 kB / 1.442 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/1.364, allocations: 0.6228 MB / 1.443 GB, free: 6.738 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/1.365, allocations: 0.5835 MB / 1.443 GB, free: 6.203 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/1.365, allocations: 16 kB / 1.443 GB, free: 6.188 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/1.365, allocations: 36 kB / 1.443 GB, free: 6.152 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001336/1.367, allocations: 0.6974 MB / 1.444 GB, free: 5.723 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/1.368, allocations: 0.7927 MB / 1.445 GB, free: 5.105 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/1.368, allocations: 8 kB / 1.445 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/1.368, allocations: 0 / 1.445 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.58e-05/1.368, allocations: 37.3 kB / 1.445 GB, free: 5.062 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004695/1.373, allocations: 3.42 MB / 1.448 GB, free: 1.793 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/1.374, allocations: 374.9 kB / 1.449 GB, free: 1.531 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/1.374, allocations: 166.7 kB / 1.449 GB, free: 1.426 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/1.374, allocations: 8 kB / 1.449 GB, free: 1.418 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/1.374, allocations: 42.66 kB / 1.449 GB, free: 1.371 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=31): time 2.384e-06/1.374, allocations: 0 / 1.449 GB, free: 1.371 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43): time 0.002675/1.377, allocations: 1.121 MB / 1.45 GB, free: 456 kB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.284e-05/1.377, allocations: 132.5 kB / 1.45 GB, free: 292 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/1.377, allocations: 392.9 kB / 1.45 GB, free: 15.98 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.572e-05/1.378, allocations: 25.7 kB / 1.451 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/1.378, allocations: 371.2 kB / 1.451 GB, free: 15.68 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/1.378, allocations: 137.7 kB / 1.451 GB, free: 15.56 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.794e-05/1.378, allocations: 3.938 kB / 1.451 GB, free: 15.56 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.378, allocations: 369.9 kB / 1.451 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/1.378, allocations: 174.9 kB / 1.452 GB, free: 15.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003438/1.379, allocations: 305.1 kB / 1.452 GB, free: 14.82 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/1.379, allocations: 217.7 kB / 1.452 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.379, allocations: 4 kB / 1.452 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001464/1.381, allocations: 0.723 MB / 1.453 GB, free: 14.09 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005429/1.381, allocations: 1.222 MB / 1.454 GB, free: 12.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/1.381, allocations: 4 kB / 1.454 GB, free: 12.79 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000936/1.382, allocations: 229 kB / 1.454 GB, free: 12.59 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/1.383, allocations: 131.8 kB / 1.454 GB, free: 12.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004342/1.387, allocations: 5.743 MB / 1.46 GB, free: 6.621 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006775/1.388, allocations: 48.08 kB / 1.46 GB, free: 6.574 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/1.388, allocations: 19.17 kB / 1.46 GB, free: 6.559 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/1.388, allocations: 4 kB / 1.46 GB, free: 6.555 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001365/1.389, allocations: 1.02 MB / 1.461 GB, free: 5.543 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.389, allocations: 4 kB / 1.461 GB, free: 5.539 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/1.39, allocations: 136.2 kB / 1.461 GB, free: 5.41 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006463/1.39, allocations: 139.2 kB / 1.461 GB, free: 5.277 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/1.395, allocations: 7.516 MB / 1.469 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/1.396, allocations: 52.11 kB / 1.469 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/1.396, allocations: 23.73 kB / 1.469 GB, free: 13.3 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.0002239/1.396, allocations: 123.8 kB / 1.469 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/1.397, allocations: 63.25 kB / 1.469 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/1.397, allocations: 74.41 kB / 1.469 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/1.397, allocations: 4 kB / 1.469 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.397, allocations: 0 / 1.469 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/1.397, allocations: 0 / 1.469 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009302/1.398, allocations: 0.5626 MB / 1.469 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/1.398, allocations: 0 / 1.469 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/1.398, allocations: 99.91 kB / 1.47 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008047/1.399, allocations: 242 kB / 1.47 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/1.399, allocations: 0 / 1.47 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006172/1.405, allocations: 8.004 MB / 1.478 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.406, allocations: 0 / 1.478 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/1.407, allocations: 0.7398 MB / 1.478 GB, free: 3.441 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003719/1.407, allocations: 177 kB / 1.478 GB, free: 3.273 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/1.408, allocations: 7.953 kB / 1.478 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005815/1.408, allocations: 39.95 kB / 1.478 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/1.408, allocations: 47.56 kB / 1.479 GB, free: 3.188 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/1.408, allocations: 8 kB / 1.479 GB, free: 3.18 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0005053/1.409, allocations: 303.8 kB / 1.479 GB, free: 2.957 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.31e-07/1.409, allocations: 0 / 1.479 GB, free: 2.957 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001379/1.41, allocations: 260 kB / 1.479 GB, free: 2.703 MB / 0.8855 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.0002743/1.411, allocations: 115.6 kB / 1.479 GB, free: 2.582 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002517/1.413, allocations: 1.728 MB / 1.481 GB, free: 1.02 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/1.413, allocations: 0 / 1.481 GB, free: 1.02 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009215/1.414, allocations: 0.8843 MB / 1.482 GB, free: 176 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009302/1.415, allocations: 172 kB / 1.482 GB, free: 44 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/1.417, allocations: 0.8709 MB / 1.483 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007279/1.418, allocations: 0.9885 MB / 1.484 GB, free: 14.25 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0007649/1.419, allocations: 168.9 kB / 1.484 GB, free: 14.08 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/1.419, allocations: 35.42 kB / 1.484 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of SimCode: time 9.21e-07/1.419, allocations: 0 / 1.484 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of Templates: time 0.02177/1.44, allocations: 11.44 MB / 1.495 GB, free: 2.734 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)