Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.639/1.639, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.001266/0.001266, allocations: 184.8 kB / 366.7 MB, free: 1.66 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.2 MB / 0.626 GB, free: 7.211 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.0008469/0.0008469, allocations: 87.41 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.741e-05, allocations: 4 kB / 0.8597 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5647/0.5647, allocations: 116.3 MB / 0.9732 GB, free: 76.28 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.7548, allocations: 164.4 MB / 1.134 GB, free: 1.777 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.755, allocations: 88.47 kB / 1.134 GB, free: 1.691 MB / 0.7292 GB [/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/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/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.03682/0.7918, allocations: 16.01 MB / 1.15 GB, free: 1.586 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.844e-06/0.7918, allocations: 3.938 kB / 1.15 GB, free: 1.582 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.751e-05/0.7919, allocations: 12 kB / 1.15 GB, free: 1.57 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007344/0.7926, allocations: 0.5414 MB / 1.15 GB, free: 0.9844 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.7927, allocations: 8.031 kB / 1.15 GB, free: 0.9766 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009295/0.7936, allocations: 143.4 kB / 1.15 GB, free: 0.8359 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003819/0.794, allocations: 290.9 kB / 1.151 GB, free: 0.5117 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.794, allocations: 12 kB / 1.151 GB, free: 0.5 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.794, allocations: 16 kB / 1.151 GB, free: 496 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004107/0.7945, allocations: 277.4 kB / 1.151 GB, free: 220 kB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.795, allocations: 409.8 kB / 1.151 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.7951, allocations: 0 / 1.151 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.7951, allocations: 3.844 kB / 1.151 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-05/0.7951, allocations: 24.56 kB / 1.151 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.7971, allocations: 2.107 MB / 1.153 GB, free: 13.45 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.7975, allocations: 241 kB / 1.153 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.7977, allocations: 104.8 kB / 1.154 GB, free: 13.08 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.7977, allocations: 7.938 kB / 1.154 GB, free: 13.07 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.7977, allocations: 38.55 kB / 1.154 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.7977, allocations: 0 / 1.154 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of matching and sorting (n=14): time 0.0003261/0.7981, allocations: 150.2 kB / 1.154 GB, free: 12.87 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.7981, allocations: 59.41 kB / 1.154 GB, free: 12.8 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.7983, allocations: 187.2 kB / 1.154 GB, free: 12.61 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.7983, allocations: 29.7 kB / 1.154 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.7984, allocations: 211.3 kB / 1.154 GB, free: 12.37 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.7985, allocations: 47.3 kB / 1.154 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-06/0.7985, allocations: 0 / 1.154 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7986, allocations: 326.8 kB / 1.155 GB, free: 11.99 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.758e-05/0.7987, allocations: 48.45 kB / 1.155 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.7988, allocations: 137.5 kB / 1.155 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.799, allocations: 76.88 kB / 1.155 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.799, allocations: 0 / 1.155 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003321/0.7993, allocations: 240 kB / 1.155 GB, free: 11.46 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.7993, allocations: 4.938 kB / 1.155 GB, free: 11.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.7993, allocations: 4 kB / 1.155 GB, free: 11.45 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001418/0.7995, allocations: 24.84 kB / 1.155 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.7997, allocations: 51.91 kB / 1.155 GB, free: 11.37 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000901/0.8006, allocations: 1.262 MB / 1.156 GB, free: 9.992 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.8007, allocations: 23.69 kB / 1.156 GB, free: 9.969 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.8008, allocations: 8.156 kB / 1.156 GB, free: 9.961 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 7.919e-05/0.8009, allocations: 116.9 kB / 1.157 GB, free: 9.84 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.8009, allocations: 15.81 kB / 1.157 GB, free: 9.824 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.801, allocations: 25.95 kB / 1.157 GB, free: 9.805 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.801, allocations: 4 kB / 1.157 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.801, allocations: 0 / 1.157 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.801, allocations: 0 / 1.157 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007423/0.8017, allocations: 0.6429 MB / 1.157 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.8017, allocations: 0 / 1.157 GB, free: 9.082 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.701e-05/0.8018, allocations: 24.17 kB / 1.157 GB, free: 9.059 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.206e-05/0.8019, allocations: 32.78 kB / 1.157 GB, free: 9.023 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.8019, allocations: 3.25 kB / 1.157 GB, free: 9.023 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007971/0.8027, allocations: 1.256 MB / 1.158 GB, free: 7.648 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.8027, allocations: 0 / 1.158 GB, free: 7.648 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.8031, allocations: 379.7 kB / 1.159 GB, free: 7.203 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 8.589e-05/0.8032, allocations: 116.8 kB / 1.159 GB, free: 7.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.8032, allocations: 3.953 kB / 1.159 GB, free: 7.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.8034, allocations: 8 kB / 1.159 GB, free: 7.059 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.8034, allocations: 15.92 kB / 1.159 GB, free: 7.043 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.8034, allocations: 8 kB / 1.159 GB, free: 7.035 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001247/0.8035, allocations: 153.6 kB / 1.159 GB, free: 6.887 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8035, allocations: 4 kB / 1.159 GB, free: 6.883 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0003841/0.8039, allocations: 71.69 kB / 1.159 GB, free: 6.812 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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.0001077/0.804, allocations: 101.5 kB / 1.159 GB, free: 6.707 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0003736/0.8044, allocations: 250.8 kB / 1.16 GB, free: 6.453 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.8044, allocations: 0.75 kB / 1.16 GB, free: 6.453 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.8046, allocations: 179.8 kB / 1.16 GB, free: 6.27 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.805, allocations: 44.59 kB / 1.16 GB, free: 6.223 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005785/0.8056, allocations: 363.8 kB / 1.16 GB, free: 5.824 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.8059, allocations: 0.7986 MB / 1.161 GB, free: 4.996 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0001315/0.8061, allocations: 45.25 kB / 1.161 GB, free: 4.957 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.8061, allocations: 15.44 kB / 1.161 GB, free: 4.945 MB / 0.7605 GB Notification: Performance of SimCode: time 2.81e-07/0.8061, allocations: 4 kB / 1.161 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of Templates: time 0.004615/0.8107, allocations: 2.12 MB / 1.163 GB, free: 2.891 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)