Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009186/0.0009188, allocations: 181.4 kB / 327.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 0.5785 GB, free: 20.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007613/0.0007613, allocations: 81.64 kB / 0.6831 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004116, allocations: 16.86 kB / 0.7974 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.207, allocations: 106.3 MB / 0.9012 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.3919, allocations: 157.7 MB / 1.055 GB, free: 1.691 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.3922, allocations: 87.95 kB / 1.055 GB, free: 1.605 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 - DAE generated: time 0.4404/0.8326, allocations: 11.41 MB / 1.066 GB, free: 154.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.734e-06/0.8326, allocations: 0 / 1.066 GB, free: 154.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.342e-05/0.8327, allocations: 6.078 kB / 1.067 GB, free: 154.1 MB / 0.698 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.001057/0.8337, allocations: 487.7 kB / 1.067 GB, free: 153.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/0.8338, allocations: 9.797 kB / 1.067 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008211/0.8347, allocations: 87.38 kB / 1.067 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.8351, allocations: 245.4 kB / 1.067 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/0.8352, allocations: 17.09 kB / 1.067 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.8352, allocations: 16.78 kB / 1.067 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006144/0.8359, allocations: 302.7 kB / 1.068 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.8359, allocations: 0.9375 kB / 1.068 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.8359, allocations: 13.83 kB / 1.068 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.836, allocations: 13.92 kB / 1.068 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.8364, allocations: 195.4 kB / 1.068 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.8379, allocations: 1.455 MB / 1.069 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.8382, allocations: 183.2 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.8383, allocations: 34.67 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.8383, allocations: 4.812 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.8383, allocations: 36.12 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.8383, allocations: 0 / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0005067/0.8389, allocations: 224.7 kB / 1.07 GB, free: 151.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.8389, allocations: 56.09 kB / 1.07 GB, free: 151.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.8391, allocations: 196.1 kB / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.8392, allocations: 30.48 kB / 1.07 GB, free: 151.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.8393, allocations: 167.7 kB / 1.07 GB, free: 151.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.8393, allocations: 24.41 kB / 1.07 GB, free: 151.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.8393, allocations: 4.688 kB / 1.07 GB, free: 151.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.8394, allocations: 329.5 kB / 1.07 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.248e-05/0.8395, allocations: 36.28 kB / 1.071 GB, free: 151.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.8396, allocations: 99.98 kB / 1.071 GB, free: 151.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.8398, allocations: 151.1 kB / 1.071 GB, free: 151 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.8398, allocations: 1.469 kB / 1.071 GB, free: 151 MB / 0.698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000338/0.8401, allocations: 187.2 kB / 1.071 GB, free: 150.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.8402, allocations: 5.562 kB / 1.071 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.046e-06/0.8402, allocations: 2.344 kB / 1.071 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001924/0.8404, allocations: 25.2 kB / 1.071 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.8405, allocations: 25.52 kB / 1.071 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008681/0.8414, allocations: 1.319 MB / 1.072 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.8415, allocations: 16.94 kB / 1.072 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.8416, allocations: 6.406 kB / 1.072 GB, free: 149.6 MB / 0.698 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 () * Number of clocked 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 0.0001385/0.8417, allocations: 153.8 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.8418, allocations: 14.78 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.8418, allocations: 25.3 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.8418, allocations: 0.75 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.8418, allocations: 0.7812 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.8418, allocations: 0.6562 kB / 1.072 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004854/0.8423, allocations: 448.4 kB / 1.073 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.8423, allocations: 8.062 kB / 1.073 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.8424, allocations: 10.05 kB / 1.073 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.996e-05/0.8425, allocations: 22.31 kB / 1.073 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.8425, allocations: 0.6562 kB / 1.073 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007278/0.8432, allocations: 1.314 MB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8432, allocations: 4.812 kB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.8434, allocations: 207.3 kB / 1.074 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.8435, allocations: 103.1 kB / 1.075 GB, free: 147.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.8435, allocations: 0.9688 kB / 1.075 GB, free: 147.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.8436, allocations: 7.625 kB / 1.075 GB, free: 147.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-05/0.8437, allocations: 9.578 kB / 1.075 GB, free: 147.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.8437, allocations: 1.219 kB / 1.075 GB, free: 147.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001278/0.8438, allocations: 148.7 kB / 1.075 GB, free: 147.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8438, allocations: 0 / 1.075 GB, free: 147.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003604/0.8442, allocations: 52.44 kB / 1.075 GB, free: 147.5 MB / 0.698 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 () * Number of clocked 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 0.0001167/0.8443, allocations: 102.9 kB / 1.075 GB, free: 147.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003511/0.8447, allocations: 206.4 kB / 1.075 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.8447, allocations: 0 / 1.075 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.8448, allocations: 153.4 kB / 1.075 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.8452, allocations: 33.61 kB / 1.075 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.8459, allocations: 429.1 kB / 1.076 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.8461, allocations: 0.7495 MB / 1.076 GB, free: 146.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001153/0.8463, allocations: 24.81 kB / 1.076 GB, free: 146.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.8463, allocations: 15.12 kB / 1.076 GB, free: 146.2 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/0.8463, allocations: 0 / 1.076 GB, free: 146.2 MB / 0.698 GB Notification: Performance of Templates: time 0.00531/0.8516, allocations: 1.662 MB / 1.078 GB, free: 146.1 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)