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") [: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: 12.75 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009186/0.0009186, allocations: 187.1 kB / 366.3 MB, free: 12 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.008/1.008, allocations: 205.1 MB / 0.6256 GB, free: 2.086 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007982/0.0007982, allocations: 85.78 kB / 0.7395 GB, free: 46.89 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 4.92e-06/4.95e-06, allocations: 0 / 0.859 GB, free: 7.25 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4102, allocations: 116.3 MB / 0.9725 GB, free: 81.52 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.5607, allocations: 164.4 MB / 1.133 GB, free: 11.63 MB / 0.7371 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.561, allocations: 88.69 kB / 1.133 GB, free: 11.55 MB / 0.7371 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: time 0.03392/0.5949, allocations: 15.67 MB / 1.148 GB, free: 11.79 MB / 0.7527 GB Notification: Performance of Transformations before backend: time 1.543e-05/0.5949, allocations: 8 kB / 1.148 GB, free: 11.78 MB / 0.7527 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.0006474/0.5956, allocations: 0.549 MB / 1.149 GB, free: 11.18 MB / 0.7527 GB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.5956, allocations: 8.031 kB / 1.149 GB, free: 11.18 MB / 0.7527 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009668/0.5966, allocations: 147.4 kB / 1.149 GB, free: 11.03 MB / 0.7527 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.597, allocations: 290.4 kB / 1.149 GB, free: 10.71 MB / 0.7527 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.597, allocations: 12 kB / 1.149 GB, free: 10.7 MB / 0.7527 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.597, allocations: 16 kB / 1.149 GB, free: 10.68 MB / 0.7527 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004279/0.5975, allocations: 285.1 kB / 1.15 GB, free: 10.4 MB / 0.7527 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.598, allocations: 420.1 kB / 1.15 GB, free: 9.957 MB / 0.7527 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.598, allocations: 4 kB / 1.15 GB, free: 9.953 MB / 0.7527 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.5981, allocations: 0 / 1.15 GB, free: 9.953 MB / 0.7527 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/0.5981, allocations: 24.64 kB / 1.15 GB, free: 9.93 MB / 0.7527 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.5999, allocations: 2.118 MB / 1.152 GB, free: 7.613 MB / 0.7527 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.6002, allocations: 155.5 kB / 1.152 GB, free: 7.453 MB / 0.7527 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.6004, allocations: 112.8 kB / 1.152 GB, free: 7.34 MB / 0.7527 GB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.6004, allocations: 0 / 1.152 GB, free: 7.34 MB / 0.7527 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.6004, allocations: 34.56 kB / 1.152 GB, free: 7.297 MB / 0.7527 GB Notification: Performance of pre-optimization done (n=14): time 9.21e-07/0.6004, allocations: 0 / 1.152 GB, free: 7.297 MB / 0.7527 GB Notification: Performance of matching and sorting (n=14): time 0.0003143/0.6007, allocations: 162.4 kB / 1.153 GB, free: 7.129 MB / 0.7527 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.6008, allocations: 59.39 kB / 1.153 GB, free: 7.059 MB / 0.7527 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.6009, allocations: 187.1 kB / 1.153 GB, free: 6.867 MB / 0.7527 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.601, allocations: 25.7 kB / 1.153 GB, free: 6.836 MB / 0.7527 GB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/0.6011, allocations: 195.4 kB / 1.153 GB, free: 6.641 MB / 0.7527 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.6011, allocations: 55.22 kB / 1.153 GB, free: 6.586 MB / 0.7527 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.085e-06/0.6011, allocations: 0 / 1.153 GB, free: 6.586 MB / 0.7527 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.6012, allocations: 330.7 kB / 1.153 GB, free: 6.254 MB / 0.7527 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.911e-05/0.6013, allocations: 52.45 kB / 1.154 GB, free: 6.203 MB / 0.7527 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.6014, allocations: 137.5 kB / 1.154 GB, free: 6.031 MB / 0.7527 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.6016, allocations: 83.28 kB / 1.154 GB, free: 5.953 MB / 0.7527 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6016, allocations: 0 / 1.154 GB, free: 5.953 MB / 0.7527 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003446/0.6019, allocations: 238.1 kB / 1.154 GB, free: 5.711 MB / 0.7527 GB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.6019, allocations: 4.938 kB / 1.154 GB, free: 5.707 MB / 0.7527 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.6019, allocations: 4 kB / 1.154 GB, free: 5.703 MB / 0.7527 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001218/0.6021, allocations: 32.69 kB / 1.154 GB, free: 5.668 MB / 0.7527 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.6023, allocations: 53.84 kB / 1.154 GB, free: 5.617 MB / 0.7527 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008316/0.6031, allocations: 1.248 MB / 1.155 GB, free: 4.246 MB / 0.7527 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.6033, allocations: 19.91 kB / 1.155 GB, free: 4.227 MB / 0.7527 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.6033, allocations: 8 kB / 1.155 GB, free: 4.219 MB / 0.7527 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.849e-05/0.6034, allocations: 116.9 kB / 1.155 GB, free: 4.098 MB / 0.7527 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.6034, allocations: 23.72 kB / 1.155 GB, free: 4.074 MB / 0.7527 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.6035, allocations: 21.45 kB / 1.155 GB, free: 4.059 MB / 0.7527 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.6035, allocations: 0 / 1.155 GB, free: 4.059 MB / 0.7527 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.6035, allocations: 1.562 kB / 1.155 GB, free: 4.059 MB / 0.7527 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.6035, allocations: 4 kB / 1.155 GB, free: 4.055 MB / 0.7527 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007256/0.6042, allocations: 0.6483 MB / 1.156 GB, free: 3.328 MB / 0.7527 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.6042, allocations: 192 / 1.156 GB, free: 3.328 MB / 0.7527 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.545e-05/0.6043, allocations: 31.92 kB / 1.156 GB, free: 3.297 MB / 0.7527 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-05/0.6044, allocations: 20.86 kB / 1.156 GB, free: 3.273 MB / 0.7527 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.6044, allocations: 7.984 kB / 1.156 GB, free: 3.266 MB / 0.7527 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007537/0.6052, allocations: 1.241 MB / 1.157 GB, free: 1.914 MB / 0.7527 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6052, allocations: 7.844 kB / 1.157 GB, free: 1.906 MB / 0.7527 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003254/0.6055, allocations: 386.9 kB / 1.158 GB, free: 1.457 MB / 0.7527 GB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.6056, allocations: 112.8 kB / 1.158 GB, free: 1.328 MB / 0.7527 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.6057, allocations: 4 kB / 1.158 GB, free: 1.324 MB / 0.7527 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.6058, allocations: 8 kB / 1.158 GB, free: 1.316 MB / 0.7527 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.001e-05/0.6059, allocations: 11.89 kB / 1.158 GB, free: 1.305 MB / 0.7527 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-06/0.6059, allocations: 8 kB / 1.158 GB, free: 1.297 MB / 0.7527 GB Notification: Performance of sort global known variables: time 0.0001115/0.606, allocations: 153.7 kB / 1.158 GB, free: 1.148 MB / 0.7527 GB Notification: Performance of remove unused functions: time 0.0003274/0.6063, allocations: 79.62 kB / 1.158 GB, free: 1.07 MB / 0.7527 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 9.511e-05/0.6064, allocations: 99.19 kB / 1.158 GB, free: 0.9609 MB / 0.7527 GB Notification: Performance of simCode: created initialization part: time 0.00035/0.6068, allocations: 259.1 kB / 1.158 GB, free: 0.6992 MB / 0.7527 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6068, allocations: 3.938 kB / 1.158 GB, free: 0.6953 MB / 0.7527 GB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.607, allocations: 169.6 kB / 1.159 GB, free: 0.5195 MB / 0.7527 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.6073, allocations: 40.64 kB / 1.159 GB, free: 488 kB / 0.7527 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005708/0.6079, allocations: 371.5 kB / 1.159 GB, free: 80 kB / 0.7527 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.6082, allocations: 0.8188 MB / 1.16 GB, free: 15.23 MB / 0.7684 GB Notification: Performance of SimCode: time 2.3e-07/0.6083, allocations: 0 / 1.16 GB, free: 15.23 MB / 0.7684 GB Notification: Performance of Templates: time 0.00473/0.613, allocations: 2.359 MB / 1.162 GB, free: 12.93 MB / 0.7684 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)