Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001178/0.001178, allocations: 176.8 kB / 487.4 MB, free: 5.043 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.473/1.473, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 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.0009549/0.0009549, allocations: 87.95 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.539e-05/1.542e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2855, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9767/1.262, allocations: 200.6 MB / 1.402 GB, free: 8.273 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/1.263, allocations: 95.61 kB / 1.402 GB, free: 8.223 MB / 0.823 GB [/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.4939/1.756, allocations: 217.5 MB / 1.614 GB, free: 10.55 MB / 1.026 GB Notification: Performance of FrontEnd: time 2.044e-06/1.757, allocations: 0 / 1.614 GB, free: 10.55 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0003622/1.757, allocations: 79.92 kB / 1.614 GB, free: 10.48 MB / 1.026 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.01113/1.768, allocations: 3.422 MB / 1.618 GB, free: 6.953 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/1.768, allocations: 12.03 kB / 1.618 GB, free: 6.941 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01863/1.787, allocations: 3.202 MB / 1.621 GB, free: 3.73 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007663/1.794, allocations: 2.292 MB / 1.623 GB, free: 1.367 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/1.795, allocations: 76.69 kB / 1.623 GB, free: 1.293 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001316/1.796, allocations: 136 kB / 1.623 GB, free: 1.16 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008914/1.805, allocations: 3.391 MB / 1.627 GB, free: 13.76 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/1.816, allocations: 3.478 MB / 1.63 GB, free: 10.14 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.574e-05/1.816, allocations: 3.938 kB / 1.63 GB, free: 10.14 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/1.817, allocations: 7.984 kB / 1.63 GB, free: 10.13 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002485/1.817, allocations: 148.8 kB / 1.63 GB, free: 9.984 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02763/1.844, allocations: 13.83 MB / 1.644 GB, free: 11 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008101/1.853, allocations: 2.761 MB / 1.646 GB, free: 8.23 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/1.855, allocations: 1.003 MB / 1.647 GB, free: 7.223 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002043/1.855, allocations: 29.28 kB / 1.647 GB, free: 7.195 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002826/1.858, allocations: 1.308 MB / 1.649 GB, free: 5.824 MB / 1.057 GB Notification: Performance of pre-optimization done (n=163): time 7.333e-06/1.858, allocations: 0 / 1.649 GB, free: 5.824 MB / 1.057 GB Notification: Performance of matching and sorting (n=250): time 0.0271/1.885, allocations: 7.545 MB / 1.656 GB, free: 14.25 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00061/1.886, allocations: 0.9022 MB / 1.657 GB, free: 13.14 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005379/1.891, allocations: 1.56 MB / 1.658 GB, free: 11.57 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0008145/1.892, allocations: 37.69 kB / 1.659 GB, free: 11.52 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.002395/1.894, allocations: 1.439 MB / 1.66 GB, free: 10.07 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.001713/1.896, allocations: 0.789 MB / 1.661 GB, free: 9.27 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005686/1.897, allocations: 0 / 1.661 GB, free: 9.27 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0003471/1.897, allocations: 394.7 kB / 1.661 GB, free: 8.879 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003281/1.9, allocations: 1.207 MB / 1.662 GB, free: 7.668 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003764/1.904, allocations: 1.583 MB / 1.664 GB, free: 5.953 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/1.908, allocations: 1.288 MB / 1.665 GB, free: 4.645 MB / 1.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.772e-05/1.908, allocations: 11.94 kB / 1.665 GB, free: 4.633 MB / 1.073 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01492/1.923, allocations: 4.374 MB / 1.669 GB, free: 204 kB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 0.001559/1.924, allocations: 2.412 MB / 1.672 GB, free: 13.57 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.21e-05/1.924, allocations: 4 kB / 1.672 GB, free: 13.56 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008644/1.933, allocations: 1.606 MB / 1.673 GB, free: 11.95 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004586/1.937, allocations: 0.5891 MB / 1.674 GB, free: 11.36 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02068/1.958, allocations: 8.996 MB / 1.683 GB, free: 2.215 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005908/1.964, allocations: 359.6 kB / 1.683 GB, free: 1.863 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008073/1.965, allocations: 91.97 kB / 1.683 GB, free: 1.773 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/1.965, allocations: 5.094 kB / 1.683 GB, free: 1.77 MB / 1.089 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01196/1.977, allocations: 3.677 MB / 1.687 GB, free: 14.04 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-05/1.977, allocations: 8 kB / 1.687 GB, free: 14.04 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005496/1.983, allocations: 1.406 MB / 1.688 GB, free: 12.62 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/1.988, allocations: 0.6359 MB / 1.689 GB, free: 11.98 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02836/2.016, allocations: 11.77 MB / 1.7 GB, free: 15.97 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00622/2.022, allocations: 363.4 kB / 1.7 GB, free: 15.62 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009014/2.023, allocations: 91.98 kB / 1.701 GB, free: 15.53 MB / 1.12 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.001533/2.025, allocations: 159.3 kB / 1.701 GB, free: 15.36 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001522/2.026, allocations: 304.4 kB / 1.701 GB, free: 15.06 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/2.028, allocations: 341.2 kB / 1.701 GB, free: 14.72 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.844e-05/2.028, allocations: 27.94 kB / 1.701 GB, free: 14.69 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.165e-05/2.028, allocations: 16 kB / 1.701 GB, free: 14.68 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.982e-05/2.028, allocations: 11.95 kB / 1.701 GB, free: 14.66 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00801/2.036, allocations: 2.806 MB / 1.704 GB, free: 11.82 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/2.036, allocations: 3.984 kB / 1.704 GB, free: 11.81 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004133/2.04, allocations: 0.5111 MB / 1.705 GB, free: 11.3 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008218/2.049, allocations: 1.641 MB / 1.706 GB, free: 9.652 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006004/2.049, allocations: 11.97 kB / 1.706 GB, free: 9.641 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03119/2.08, allocations: 13.34 MB / 1.719 GB, free: 12.05 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.68e-05/2.081, allocations: 7.984 kB / 1.719 GB, free: 12.05 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01326/2.094, allocations: 4.182 MB / 1.723 GB, free: 7.836 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002613/2.097, allocations: 0.634 MB / 1.724 GB, free: 7.18 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/2.098, allocations: 8 kB / 1.724 GB, free: 7.172 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005136/2.103, allocations: 371.5 kB / 1.724 GB, free: 6.809 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001265/2.104, allocations: 310.6 kB / 1.725 GB, free: 6.504 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/2.104, allocations: 67.97 kB / 1.725 GB, free: 6.438 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.00298/2.107, allocations: 1.165 MB / 1.726 GB, free: 5.266 MB / 1.135 GB Notification: Performance of sort global known variables: time 2.71e-07/2.107, allocations: 0 / 1.726 GB, free: 5.266 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.007171/2.115, allocations: 1.402 MB / 1.727 GB, free: 3.863 MB / 1.135 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.0006504/2.115, allocations: 143.7 kB / 1.727 GB, free: 3.715 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.02088/2.136, allocations: 7.36 MB / 1.735 GB, free: 12.19 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/2.136, allocations: 4 kB / 1.735 GB, free: 12.18 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00851/2.145, allocations: 2.67 MB / 1.737 GB, free: 9.492 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007368/2.152, allocations: 0.8655 MB / 1.738 GB, free: 8.633 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/2.17, allocations: 4.784 MB / 1.743 GB, free: 3.816 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004708/2.175, allocations: 2.319 MB / 1.745 GB, free: 1.461 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.008166/2.183, allocations: 0.7182 MB / 1.746 GB, free: 0.7383 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/2.185, allocations: 139.4 kB / 1.746 GB, free: 0.6016 MB / 1.151 GB Notification: Performance of SimCode: time 2.084e-06/2.185, allocations: 0 / 1.746 GB, free: 0.6016 MB / 1.151 GB Notification: Performance of Templates: time 0.7768/2.962, allocations: 69.3 MB / 1.813 GB, free: 276.3 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)