Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.32/1.32, allocations: 289.8 MB / 297.1 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009934/0.0009934, allocations: 179.2 kB / 366.3 MB, free: 1.953 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9751/0.9751, allocations: 205.1 MB / 0.6256 GB, free: 5.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008217/0.0008218, allocations: 91.78 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.08e-06/5.1e-06, allocations: 0 / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3757, allocations: 116.3 MB / 0.9726 GB, free: 68.77 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.523, allocations: 164.2 MB / 1.133 GB, free: 244 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.5232, allocations: 92.44 kB / 1.133 GB, free: 152 kB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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 8.1.4-maint.8.1.x/Electrical/Interfaces/Source.mo:30:9-30: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 8.1.4-maint.8.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39: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: time 0.02338/0.5466, allocations: 10.92 MB / 1.144 GB, free: 5.125 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.5466, allocations: 4 kB / 1.144 GB, free: 5.121 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000487/0.5471, allocations: 480.9 kB / 1.144 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.5472, allocations: 9.344 kB / 1.144 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006077/0.5478, allocations: 79.64 kB / 1.144 GB, free: 4.52 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.5481, allocations: 242.7 kB / 1.144 GB, free: 4.242 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.5481, allocations: 4 kB / 1.144 GB, free: 4.238 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.5481, allocations: 12 kB / 1.144 GB, free: 4.227 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002655/0.5484, allocations: 172.8 kB / 1.145 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/0.5488, allocations: 270.5 kB / 1.145 GB, free: 3.77 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.5488, allocations: 4 kB / 1.145 GB, free: 3.766 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.5488, allocations: 8 kB / 1.145 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.5489, allocations: 20.36 kB / 1.145 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.5501, allocations: 1.415 MB / 1.146 GB, free: 2.176 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.5503, allocations: 86.62 kB / 1.146 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.682e-05/0.5503, allocations: 28.86 kB / 1.146 GB, free: 2.051 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 6.361e-06/0.5503, allocations: 0 / 1.146 GB, free: 2.051 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.5504, allocations: 37.09 kB / 1.146 GB, free: 2.008 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.5504, allocations: 4 kB / 1.146 GB, free: 2.004 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002609/0.5506, allocations: 114.3 kB / 1.147 GB, free: 1.883 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.5507, allocations: 55.34 kB / 1.147 GB, free: 1.816 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.5508, allocations: 154.2 kB / 1.147 GB, free: 1.66 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.5508, allocations: 25.7 kB / 1.147 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.5509, allocations: 163.5 kB / 1.147 GB, free: 1.465 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.551, allocations: 23.66 kB / 1.147 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.551, allocations: 0 / 1.147 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5511, allocations: 326.8 kB / 1.147 GB, free: 1.113 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.606e-05/0.5511, allocations: 39.89 kB / 1.147 GB, free: 1.074 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.902e-05/0.5512, allocations: 93.83 kB / 1.147 GB, free: 0.9531 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.65e-05/0.5513, allocations: 55.91 kB / 1.147 GB, free: 0.8984 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5513, allocations: 0 / 1.147 GB, free: 0.8984 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002637/0.5516, allocations: 169.6 kB / 1.148 GB, free: 0.7266 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.5516, allocations: 11.89 kB / 1.148 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.5516, allocations: 4 kB / 1.148 GB, free: 0.7109 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001256/0.5517, allocations: 24.84 kB / 1.148 GB, free: 0.6836 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.5519, allocations: 23.94 kB / 1.148 GB, free: 0.6602 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008736/0.5527, allocations: 1.254 MB / 1.149 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.5529, allocations: 15.75 kB / 1.149 GB, free: 15.28 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.5529, allocations: 8.094 kB / 1.149 GB, free: 15.27 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.372e-05/0.5529, allocations: 109 kB / 1.149 GB, free: 15.16 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.642e-05/0.553, allocations: 15.81 kB / 1.149 GB, free: 15.14 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.553, allocations: 17.39 kB / 1.149 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.553, allocations: 4 kB / 1.149 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.553, allocations: 0 / 1.149 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.553, allocations: 0 / 1.149 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.5532, allocations: 210.3 kB / 1.149 GB, free: 14.88 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5532, allocations: 3.906 kB / 1.149 GB, free: 14.88 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.5533, allocations: 15.94 kB / 1.149 GB, free: 14.86 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.683e-05/0.5534, allocations: 25.39 kB / 1.149 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.5534, allocations: 0 / 1.149 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007787/0.5542, allocations: 1.248 MB / 1.15 GB, free: 13.47 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5542, allocations: 0 / 1.15 GB, free: 13.47 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001939/0.5544, allocations: 208.1 kB / 1.151 GB, free: 13.25 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.5545, allocations: 97.08 kB / 1.151 GB, free: 13.13 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.5545, allocations: 1.031 kB / 1.151 GB, free: 13.13 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.5546, allocations: 11.92 kB / 1.151 GB, free: 13.12 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.5546, allocations: 7.844 kB / 1.151 GB, free: 13.11 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.5546, allocations: 8 kB / 1.151 GB, free: 13.11 MB / 0.7605 GB Notification: Performance of sort global known variables: time 7.782e-05/0.5547, allocations: 124.8 kB / 1.151 GB, free: 12.98 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000289/0.555, allocations: 47.84 kB / 1.151 GB, free: 12.94 MB / 0.7605 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 (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.838e-05/0.5551, allocations: 107.2 kB / 1.151 GB, free: 12.82 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002623/0.5554, allocations: 193.8 kB / 1.151 GB, free: 12.62 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5554, allocations: 0 / 1.151 GB, free: 12.62 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.5555, allocations: 138.3 kB / 1.151 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.5557, allocations: 31.33 kB / 1.151 GB, free: 12.45 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.5561, allocations: 211.9 kB / 1.152 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.5564, allocations: 0.7634 MB / 1.152 GB, free: 11.44 MB / 0.7605 GB Notification: Performance of SimCode: time 2.91e-07/0.5564, allocations: 0 / 1.152 GB, free: 11.44 MB / 0.7605 GB Notification: Performance of Templates: time 0.003556/0.56, allocations: 1.587 MB / 1.154 GB, free: 9.887 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)