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.337/2.337, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001235/0.001236, allocations: 173.2 kB / 498.1 MB, free: 5.695 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.666/1.666, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.0009528/0.0009529, allocations: 105.5 kB / 0.9346 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004347, allocations: 6.969 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3784, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2738/0.6524, allocations: 201.4 MB / 1.42 GB, free: 8.574 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.6528, allocations: 91.94 kB / 1.42 GB, free: 8.484 MB / 0.9167 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 1.224/1.877, allocations: 219.8 MB / 1.634 GB, free: 11.98 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.627e-06/1.877, allocations: 4 kB / 1.634 GB, free: 11.97 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005291/1.878, allocations: 83.92 kB / 1.634 GB, free: 11.89 MB / 0.9167 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.01257/1.89, allocations: 3.936 MB / 1.638 GB, free: 7.844 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/1.89, allocations: 8.031 kB / 1.638 GB, free: 7.836 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0165/1.907, allocations: 3.225 MB / 1.641 GB, free: 4.602 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00996/1.917, allocations: 2.32 MB / 1.644 GB, free: 2.211 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002724/1.917, allocations: 172.7 kB / 1.644 GB, free: 2.039 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/1.919, allocations: 235.9 kB / 1.644 GB, free: 1.809 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/1.936, allocations: 4.692 MB / 1.649 GB, free: 12.97 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000137/1.936, allocations: 3.938 kB / 1.649 GB, free: 12.97 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/1.937, allocations: 104 kB / 1.649 GB, free: 12.87 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002418/1.937, allocations: 144.8 kB / 1.649 GB, free: 12.72 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01625/1.954, allocations: 5.218 MB / 1.654 GB, free: 7.488 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03405/1.988, allocations: 14.37 MB / 1.668 GB, free: 7.949 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01283/2.001, allocations: 3.78 MB / 1.672 GB, free: 4.16 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002742/2.001, allocations: 21.3 kB / 1.672 GB, free: 4.141 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005244/2.006, allocations: 1.818 MB / 1.673 GB, free: 2.258 MB / 0.948 GB Notification: Performance of pre-optimization done (n=163): time 7.334e-06/2.006, allocations: 4 kB / 1.673 GB, free: 2.254 MB / 0.948 GB Notification: Performance of matching and sorting (n=250): time 0.1322/2.139, allocations: 33.52 MB / 1.706 GB, free: 0.5156 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000631/2.139, allocations: 0.8983 MB / 1.707 GB, free: 15.41 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005336/2.145, allocations: 1.981 MB / 1.709 GB, free: 13.42 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008761/2.145, allocations: 81.7 kB / 1.709 GB, free: 13.33 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002379/2.148, allocations: 1.442 MB / 1.71 GB, free: 11.88 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/2.15, allocations: 0.8163 MB / 1.711 GB, free: 11.05 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004415/2.15, allocations: 48 kB / 1.711 GB, free: 11 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0002769/2.15, allocations: 394.6 kB / 1.712 GB, free: 10.61 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005464/2.156, allocations: 1.929 MB / 1.714 GB, free: 8.676 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005814/2.162, allocations: 2.316 MB / 1.716 GB, free: 6.223 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005551/2.167, allocations: 2.144 MB / 1.718 GB, free: 4.027 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.907e-05/2.167, allocations: 4 kB / 1.718 GB, free: 4.023 MB / 0.9948 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01791/2.185, allocations: 6.126 MB / 1.724 GB, free: 13.8 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001362/2.187, allocations: 2.448 MB / 1.726 GB, free: 11.09 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.598e-05/2.187, allocations: 11.95 kB / 1.726 GB, free: 11.07 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007184/2.194, allocations: 1.793 MB / 1.728 GB, free: 9.273 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003377/2.197, allocations: 0.5968 MB / 1.729 GB, free: 8.676 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/2.215, allocations: 9.517 MB / 1.738 GB, free: 15 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/2.22, allocations: 415.5 kB / 1.738 GB, free: 14.59 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007051/2.221, allocations: 91.97 kB / 1.738 GB, free: 14.5 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/2.221, allocations: 0 / 1.738 GB, free: 14.5 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01685/2.237, allocations: 5.73 MB / 1.744 GB, free: 8.688 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/2.238, allocations: 8 kB / 1.744 GB, free: 8.68 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005776/2.243, allocations: 1.794 MB / 1.746 GB, free: 6.879 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/2.247, allocations: 0.6124 MB / 1.746 GB, free: 6.266 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.025/2.272, allocations: 14.02 MB / 1.76 GB, free: 7.961 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005597/2.278, allocations: 419.5 kB / 1.76 GB, free: 7.551 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/2.279, allocations: 87.97 kB / 1.761 GB, free: 7.465 MB / 1.042 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 () * Number of clocked 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.00366/2.282, allocations: 0.7997 MB / 1.761 GB, free: 6.652 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001671/2.284, allocations: 336.1 kB / 1.762 GB, free: 6.32 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/2.286, allocations: 392.1 kB / 1.762 GB, free: 5.93 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/2.286, allocations: 24 kB / 1.762 GB, free: 5.906 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.113e-05/2.286, allocations: 15.98 kB / 1.762 GB, free: 5.891 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.936e-05/2.286, allocations: 11.95 kB / 1.762 GB, free: 5.879 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007428/2.293, allocations: 3.18 MB / 1.765 GB, free: 2.645 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.11e-05/2.293, allocations: 4 kB / 1.765 GB, free: 2.641 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002862/2.296, allocations: 0.5189 MB / 1.766 GB, free: 2.121 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00664/2.303, allocations: 1.692 MB / 1.767 GB, free: 432 kB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005949/2.303, allocations: 59.92 kB / 1.767 GB, free: 372 kB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02515/2.329, allocations: 14.54 MB / 1.782 GB, free: 1.551 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/2.329, allocations: 0 / 1.782 GB, free: 1.551 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/2.347, allocations: 5.76 MB / 1.787 GB, free: 11.76 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/2.349, allocations: 0.6656 MB / 1.788 GB, free: 11.07 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/2.351, allocations: 48 kB / 1.788 GB, free: 11.02 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004096/2.355, allocations: 411.6 kB / 1.788 GB, free: 10.62 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/2.356, allocations: 310.6 kB / 1.789 GB, free: 10.32 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000408/2.356, allocations: 71.97 kB / 1.789 GB, free: 10.25 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.003724/2.36, allocations: 1.521 MB / 1.79 GB, free: 8.73 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.51e-07/2.36, allocations: 0 / 1.79 GB, free: 8.73 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.007059/2.367, allocations: 1.586 MB / 1.792 GB, free: 7.145 MB / 1.073 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) * Number of clocked states: 0 () * 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.0007283/2.368, allocations: 204.1 kB / 1.792 GB, free: 6.938 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.02616/2.394, allocations: 9.688 MB / 1.801 GB, free: 13.07 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 1.702e-05/2.394, allocations: 4.125 kB / 1.801 GB, free: 13.07 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.009733/2.404, allocations: 3.503 MB / 1.805 GB, free: 9.535 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006801/2.411, allocations: 1.011 MB / 1.806 GB, free: 8.531 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0185/2.429, allocations: 7.567 MB / 1.813 GB, free: 0.9492 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00333/2.433, allocations: 2.323 MB / 1.815 GB, free: 14.59 MB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.004415/2.437, allocations: 0.6387 MB / 1.816 GB, free: 13.95 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009907/2.438, allocations: 183.4 kB / 1.816 GB, free: 13.77 MB / 1.104 GB Notification: Performance of SimCode: time 1.443e-06/2.438, allocations: 4 kB / 1.816 GB, free: 13.77 MB / 1.104 GB Notification: Performance of Templates: time 0.7014/3.14, allocations: 72.49 MB / 1.887 GB, free: 257 MB / 1.12 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)