Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.154/2.154, allocations: 253.1 MB / 260.4 MB, free: 7.555 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001609/0.001609, allocations: 181.2 kB / 319.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.4 MB / 0.5704 GB, free: 15.05 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001341/0.00134, allocations: 98.45 kB / 0.6746 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.787e-06/8.947e-06, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2037, allocations: 106.2 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7327/0.9364, allocations: 157.7 MB / 1.042 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.9368, allocations: 84.33 kB / 1.042 GB, free: 14.74 MB / 0.6667 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.04335/0.9802, allocations: 10.93 MB / 1.053 GB, free: 5.836 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.11e-05/0.9803, allocations: 7.875 kB / 1.053 GB, free: 5.832 MB / 0.6667 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.000914/0.9812, allocations: 473.6 kB / 1.053 GB, free: 5.332 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.9812, allocations: 12.03 kB / 1.053 GB, free: 5.32 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.9823, allocations: 79.64 kB / 1.053 GB, free: 5.242 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.9828, allocations: 246 kB / 1.054 GB, free: 4.977 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.9828, allocations: 4 kB / 1.054 GB, free: 4.973 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.9829, allocations: 12 kB / 1.054 GB, free: 4.961 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005102/0.9834, allocations: 169.8 kB / 1.054 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005961/0.984, allocations: 268.5 kB / 1.054 GB, free: 4.625 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.984, allocations: 0 / 1.054 GB, free: 4.625 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.949e-05/0.9841, allocations: 4 kB / 1.054 GB, free: 4.621 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.092e-05/0.9841, allocations: 16.25 kB / 1.054 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.9863, allocations: 1.41 MB / 1.055 GB, free: 3.152 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.9866, allocations: 97.31 kB / 1.056 GB, free: 3.066 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.709e-05/0.9867, allocations: 32.7 kB / 1.056 GB, free: 3.039 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 9.577e-06/0.9868, allocations: 0 / 1.056 GB, free: 3.039 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.9868, allocations: 38.44 kB / 1.056 GB, free: 2.996 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.9868, allocations: 0 / 1.056 GB, free: 2.996 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0004112/0.9872, allocations: 101.8 kB / 1.056 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.9873, allocations: 59.41 kB / 1.056 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.9875, allocations: 160.4 kB / 1.056 GB, free: 2.691 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.9875, allocations: 25.7 kB / 1.056 GB, free: 2.66 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.9877, allocations: 163.1 kB / 1.056 GB, free: 2.504 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.9877, allocations: 27.58 kB / 1.056 GB, free: 2.48 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.12e-05/0.9877, allocations: 0 / 1.056 GB, free: 2.48 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.9879, allocations: 330.5 kB / 1.056 GB, free: 2.156 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/0.988, allocations: 31.44 kB / 1.056 GB, free: 2.137 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.9881, allocations: 100 kB / 1.057 GB, free: 2.023 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.9883, allocations: 51.41 kB / 1.057 GB, free: 1.984 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.9883, allocations: 0 / 1.057 GB, free: 1.984 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004593/0.9888, allocations: 178.7 kB / 1.057 GB, free: 1.828 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.9888, allocations: 4 kB / 1.057 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.9888, allocations: 288 / 1.057 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.989, allocations: 32.78 kB / 1.057 GB, free: 1.793 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.9893, allocations: 23.98 kB / 1.057 GB, free: 1.77 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.9907, allocations: 1.253 MB / 1.058 GB, free: 452 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.991, allocations: 19.88 kB / 1.058 GB, free: 432 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.991, allocations: 4 kB / 1.058 GB, free: 428 kB / 0.6667 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 0.0001192/0.9911, allocations: 116.8 kB / 1.058 GB, free: 308 kB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.9912, allocations: 15.89 kB / 1.058 GB, free: 292 kB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.656e-05/0.9913, allocations: 17.28 kB / 1.058 GB, free: 284 kB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.9913, allocations: 4 kB / 1.058 GB, free: 280 kB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9913, allocations: 0 / 1.058 GB, free: 280 kB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.9913, allocations: 0 / 1.058 GB, free: 280 kB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003416/0.9916, allocations: 217 kB / 1.058 GB, free: 52 kB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.9917, allocations: 0 / 1.058 GB, free: 52 kB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.677e-05/0.9918, allocations: 11.98 kB / 1.058 GB, free: 40 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001428/0.9919, allocations: 20.66 kB / 1.058 GB, free: 20 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.9919, allocations: 4 kB / 1.058 GB, free: 16 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.9933, allocations: 1.246 MB / 1.06 GB, free: 14.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.9933, allocations: 0 / 1.06 GB, free: 14.69 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004023/0.9937, allocations: 202.6 kB / 1.06 GB, free: 14.49 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.9939, allocations: 104.2 kB / 1.06 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.9939, allocations: 0 / 1.06 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.9941, allocations: 4 kB / 1.06 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.773e-05/0.9942, allocations: 4.094 kB / 1.06 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.9942, allocations: 4 kB / 1.06 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001503/0.9943, allocations: 126.4 kB / 1.06 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005031/0.9949, allocations: 47.84 kB / 1.06 GB, free: 14.21 MB / 0.6823 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 0.0001432/0.995, allocations: 95.25 kB / 1.06 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004784/0.9955, allocations: 201.7 kB / 1.06 GB, free: 13.92 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.9955, allocations: 0 / 1.06 GB, free: 13.92 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.9957, allocations: 135.1 kB / 1.061 GB, free: 13.79 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.9961, allocations: 30.8 kB / 1.061 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006921/0.9968, allocations: 216.5 kB / 1.061 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004837/0.9973, allocations: 0.7778 MB / 1.062 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of SimCode: time 9.21e-07/0.9974, allocations: 0 / 1.062 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of Templates: time 0.006709/1.004, allocations: 1.605 MB / 1.063 GB, free: 11.18 MB / 0.6823 GB