Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [: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.213/2.213, allocations: 253.1 MB / 260.4 MB, free: 7.535 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.002416/0.002416, allocations: 185.9 kB / 319.6 MB, free: 3.316 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 1.965/1.965, 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.001654/0.001654, allocations: 91.38 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.152e-05/1.158e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.194, allocations: 106.2 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7291/0.9232, allocations: 153.7 MB / 1.038 GB, free: 2.66 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.9236, allocations: 88.58 kB / 1.038 GB, free: 2.613 MB / 0.6511 GB [/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);. [/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);. Notification: Performance of FrontEnd: time 0.03776/0.9614, allocations: 9.108 MB / 1.047 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.911e-05/0.9614, allocations: 4 kB / 1.047 GB, free: 11.31 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007467/0.9622, allocations: 413.3 kB / 1.048 GB, free: 10.87 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.9623, allocations: 12.03 kB / 1.048 GB, free: 10.86 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007065/0.963, allocations: 51.77 kB / 1.048 GB, free: 10.81 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.9634, allocations: 221.5 kB / 1.048 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.9635, allocations: 4 kB / 1.048 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.9635, allocations: 8 kB / 1.048 GB, free: 10.55 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000402/0.9639, allocations: 127.8 kB / 1.048 GB, free: 10.46 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.9644, allocations: 205.1 kB / 1.048 GB, free: 10.29 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.9644, allocations: 0 / 1.048 GB, free: 10.29 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.9645, allocations: 4 kB / 1.048 GB, free: 10.28 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.537e-05/0.9645, allocations: 19.89 kB / 1.048 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.9663, allocations: 1.16 MB / 1.049 GB, free: 9.039 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 7.498e-05/0.9664, allocations: 29 kB / 1.049 GB, free: 9.004 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.691e-05/0.9665, allocations: 12.86 kB / 1.049 GB, free: 8.988 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.9665, allocations: 6.562 kB / 1.049 GB, free: 8.984 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.9665, allocations: 30.56 kB / 1.049 GB, free: 8.945 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 2.966e-06/0.9665, allocations: 0 / 1.049 GB, free: 8.945 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.000228/0.9668, allocations: 54.81 kB / 1.049 GB, free: 8.891 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.9668, allocations: 55.31 kB / 1.049 GB, free: 8.824 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.967, allocations: 134.4 kB / 1.05 GB, free: 8.695 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.9671, allocations: 25.7 kB / 1.05 GB, free: 8.664 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.9672, allocations: 148.4 kB / 1.05 GB, free: 8.523 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.9672, allocations: 14.28 kB / 1.05 GB, free: 8.512 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.9673, allocations: 3.938 kB / 1.05 GB, free: 8.508 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.9674, allocations: 318.1 kB / 1.05 GB, free: 8.191 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.934e-05/0.9675, allocations: 18.75 kB / 1.05 GB, free: 8.18 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.9676, allocations: 84.06 kB / 1.05 GB, free: 8.07 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.9677, allocations: 27.48 kB / 1.05 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.9677, allocations: 7.875 kB / 1.05 GB, free: 8.043 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003062/0.9681, allocations: 118.7 kB / 1.05 GB, free: 7.934 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005712/0.9687, allocations: 0.9621 MB / 1.051 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.9687, allocations: 4 kB / 1.051 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.9687, allocations: 4 kB / 1.051 GB, free: 6.906 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.969, allocations: 27.44 kB / 1.051 GB, free: 6.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.969, allocations: 11.86 kB / 1.051 GB, free: 6.871 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.9691, allocations: 15.84 kB / 1.051 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.9692, allocations: 4 kB / 1.051 GB, free: 6.852 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.9692, allocations: 7.906 kB / 1.051 GB, free: 6.844 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002342/0.9694, allocations: 73.59 kB / 1.051 GB, free: 6.781 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.9695, allocations: 8.062 kB / 1.051 GB, free: 6.773 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.9695, allocations: 4.141 kB / 1.051 GB, free: 6.77 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.9696, allocations: 31.23 kB / 1.051 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.9697, allocations: 4 kB / 1.051 GB, free: 6.738 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.637e-05/0.9698, allocations: 11.92 kB / 1.051 GB, free: 6.727 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.9698, allocations: 8 kB / 1.051 GB, free: 6.719 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.9699, allocations: 108.8 kB / 1.052 GB, free: 6.605 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.97, allocations: 7.906 kB / 1.052 GB, free: 6.598 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.035e-05/0.97, allocations: 19.42 kB / 1.052 GB, free: 6.582 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.9701, allocations: 0 / 1.052 GB, free: 6.582 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9701, allocations: 0 / 1.052 GB, free: 6.582 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.9701, allocations: 0 / 1.052 GB, free: 6.582 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005863/0.9707, allocations: 412.2 kB / 1.052 GB, free: 6.152 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.9707, allocations: 0 / 1.052 GB, free: 6.152 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.142e-05/0.9708, allocations: 7.984 kB / 1.052 GB, free: 6.145 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.9708, allocations: 12 kB / 1.052 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.9708, allocations: 0 / 1.052 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.9708, allocations: 0 / 1.052 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.9708, allocations: 0 / 1.052 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001796/0.971, allocations: 116.7 kB / 1.052 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.9712, allocations: 96.09 kB / 1.052 GB, free: 5.879 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.9712, allocations: 0 / 1.052 GB, free: 5.879 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.923e-05/0.9713, allocations: 4 kB / 1.052 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.9713, allocations: 0 / 1.052 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.9713, allocations: 0 / 1.052 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001214/0.9715, allocations: 117.9 kB / 1.052 GB, free: 5.773 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.000542/0.972, allocations: 55.69 kB / 1.052 GB, free: 5.719 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001668/0.9722, allocations: 101.5 kB / 1.052 GB, free: 5.613 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003114/0.9725, allocations: 93.09 kB / 1.053 GB, free: 5.539 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.9725, allocations: 0 / 1.053 GB, free: 5.539 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.972e-05/0.9726, allocations: 8 kB / 1.053 GB, free: 5.531 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.9729, allocations: 20.61 kB / 1.053 GB, free: 5.516 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005632/0.9735, allocations: 166.6 kB / 1.053 GB, free: 5.336 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/0.9739, allocations: 0.7414 MB / 1.053 GB, free: 4.578 MB / 0.6667 GB Notification: Performance of SimCode: time 9.52e-07/0.974, allocations: 3.938 kB / 1.053 GB, free: 4.574 MB / 0.6667 GB Notification: Performance of Templates: time 0.005056/0.979, allocations: 0.9513 MB / 1.054 GB, free: 3.633 MB / 0.6667 GB