Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel") [: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.329/1.329, allocations: 289.8 MB / 297.1 MB, free: 6.637 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.0009045/0.0009045, allocations: 184 kB / 366.3 MB, free: 1.922 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.002/1.002, allocations: 205.1 MB / 0.6256 GB, free: 5.754 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.0007461/0.0007461, allocations: 89.41 kB / 0.7395 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.803e-06/6.813e-06, allocations: 4 kB / 0.859 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.389, allocations: 116.3 MB / 0.9726 GB, free: 68.89 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.5464, allocations: 171.1 MB / 1.14 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.5466, allocations: 95.86 kB / 1.14 GB, free: 9.301 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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.0389/0.5855, allocations: 17.4 MB / 1.157 GB, free: 7.699 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 2.747e-05/0.5856, allocations: 8 kB / 1.157 GB, free: 7.691 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.0008886/0.5865, allocations: 0.6346 MB / 1.157 GB, free: 7.008 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.5865, allocations: 8.031 kB / 1.157 GB, free: 7 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.5876, allocations: 151.4 kB / 1.157 GB, free: 6.852 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.5882, allocations: 350 kB / 1.158 GB, free: 6.473 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.5882, allocations: 8 kB / 1.158 GB, free: 6.465 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.5883, allocations: 31.91 kB / 1.158 GB, free: 6.434 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005268/0.5888, allocations: 345.4 kB / 1.158 GB, free: 6.098 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.5895, allocations: 479.9 kB / 1.159 GB, free: 5.59 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.5895, allocations: 4 kB / 1.159 GB, free: 5.586 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.5895, allocations: 0 / 1.159 GB, free: 5.586 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-05/0.5896, allocations: 28.64 kB / 1.159 GB, free: 5.559 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.5919, allocations: 2.34 MB / 1.161 GB, free: 3.012 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.5921, allocations: 133.7 kB / 1.161 GB, free: 2.875 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.5922, allocations: 105.9 kB / 1.161 GB, free: 2.77 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.5922, allocations: 0 / 1.161 GB, free: 2.77 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.5923, allocations: 38.47 kB / 1.161 GB, free: 2.723 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=20): time 1.293e-06/0.5923, allocations: 0 / 1.161 GB, free: 2.723 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23): time 0.001457/0.5937, allocations: 0.7997 MB / 1.162 GB, free: 1.863 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.5938, allocations: 55.31 kB / 1.162 GB, free: 1.797 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.594, allocations: 225 kB / 1.162 GB, free: 1.566 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.594, allocations: 29.7 kB / 1.162 GB, free: 1.531 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.5941, allocations: 207.5 kB / 1.163 GB, free: 1.324 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.5942, allocations: 82.75 kB / 1.163 GB, free: 1.242 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.22e-05/0.5942, allocations: 0 / 1.163 GB, free: 1.242 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5943, allocations: 338.8 kB / 1.163 GB, free: 0.9023 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.5945, allocations: 96.62 kB / 1.163 GB, free: 0.8047 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.5947, allocations: 179.5 kB / 1.163 GB, free: 0.5938 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.5948, allocations: 125 kB / 1.163 GB, free: 484 kB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.5949, allocations: 4 kB / 1.163 GB, free: 480 kB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006434/0.5955, allocations: 399.9 kB / 1.164 GB, free: 68 kB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.5955, allocations: 5.25 kB / 1.164 GB, free: 64 kB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5955, allocations: 0 / 1.164 GB, free: 64 kB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003431/0.5959, allocations: 90.8 kB / 1.164 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.5962, allocations: 71.84 kB / 1.164 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.5989, allocations: 3.874 MB / 1.168 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.5991, allocations: 4 kB / 1.168 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.5991, allocations: 15.98 kB / 1.168 GB, free: 11.65 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.625e-05/0.5992, allocations: 120.7 kB / 1.168 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.5992, allocations: 27.62 kB / 1.168 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.676e-05/0.5993, allocations: 42.14 kB / 1.168 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.5993, allocations: 0 / 1.168 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5993, allocations: 4 kB / 1.168 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5993, allocations: 0 / 1.168 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.5997, allocations: 338 kB / 1.168 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5997, allocations: 0 / 1.168 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.5999, allocations: 39.92 kB / 1.168 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002861/0.6002, allocations: 86.52 kB / 1.168 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.6002, allocations: 7.891 kB / 1.168 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002521/0.6028, allocations: 3.854 MB / 1.172 GB, free: 6.746 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6028, allocations: 0 / 1.172 GB, free: 6.746 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007108/0.6035, allocations: 0.5429 MB / 1.173 GB, free: 6.18 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.6036, allocations: 124.7 kB / 1.173 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.072e-05/0.6037, allocations: 0 / 1.173 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.6039, allocations: 8 kB / 1.173 GB, free: 6.031 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/0.6039, allocations: 7.984 kB / 1.173 GB, free: 6.023 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.6039, allocations: 11.94 kB / 1.173 GB, free: 6.012 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0001364/0.6041, allocations: 173.2 kB / 1.173 GB, free: 5.848 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003934/0.6045, allocations: 88.06 kB / 1.173 GB, free: 5.762 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001167/0.6046, allocations: 99.25 kB / 1.173 GB, free: 5.656 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006901/0.6053, allocations: 0.5527 MB / 1.174 GB, free: 5.074 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.6053, allocations: 0 / 1.174 GB, free: 5.074 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004175/0.6057, allocations: 429.4 kB / 1.174 GB, free: 4.625 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.6061, allocations: 59.27 kB / 1.174 GB, free: 4.57 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008751/0.607, allocations: 0.4932 MB / 1.175 GB, free: 4.047 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004341/0.6074, allocations: 0.8595 MB / 1.175 GB, free: 3.156 MB / 0.7761 GB Notification: Performance of SimCode: time 2.21e-07/0.6074, allocations: 0 / 1.175 GB, free: 3.156 MB / 0.7761 GB Notification: Performance of Templates: time 0.00734/0.6148, allocations: 4.15 MB / 1.179 GB, free: 15.08 MB / 0.7917 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)