Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.305/1.305, allocations: 289.8 MB / 297.1 MB, free: 6.664 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.0009261/0.0009261, allocations: 189.2 kB / 366.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9812/0.9812, allocations: 205.1 MB / 0.6256 GB, free: 5.844 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.0007906/0.0007908, allocations: 83.28 kB / 0.7395 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.691e-06/5.711e-06, allocations: 0 / 0.859 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3982, allocations: 116.3 MB / 0.9726 GB, free: 68.63 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.5437, allocations: 160.1 MB / 1.129 GB, free: 4.375 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.5439, allocations: 92.67 kB / 1.129 GB, free: 4.285 MB / 0.7292 GB [/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/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.01891/0.5628, allocations: 9.099 MB / 1.138 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.5629, allocations: 4 kB / 1.138 GB, free: 11.1 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0003763/0.5632, allocations: 410.3 kB / 1.138 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.5633, allocations: 8.031 kB / 1.138 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003929/0.5637, allocations: 55.75 kB / 1.138 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.5639, allocations: 210.8 kB / 1.139 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.719e-06/0.5639, allocations: 8 kB / 1.139 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.5639, allocations: 8 kB / 1.139 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002049/0.5642, allocations: 128.2 kB / 1.139 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.5644, allocations: 218.2 kB / 1.139 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5644, allocations: 0.6562 kB / 1.139 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.5645, allocations: 4 kB / 1.139 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.5645, allocations: 16.27 kB / 1.139 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009171/0.5654, allocations: 1.155 MB / 1.14 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.508e-05/0.5655, allocations: 30.52 kB / 1.14 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.321e-05/0.5655, allocations: 12.95 kB / 1.14 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.5655, allocations: 7.984 kB / 1.14 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.5655, allocations: 36.16 kB / 1.14 GB, free: 8.547 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.5655, allocations: 0 / 1.14 GB, free: 8.547 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001197/0.5657, allocations: 53.59 kB / 1.14 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/0.5657, allocations: 51.41 kB / 1.14 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.5658, allocations: 131.1 kB / 1.14 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.5658, allocations: 25.7 kB / 1.14 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.5659, allocations: 147 kB / 1.141 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/0.5659, allocations: 23.8 kB / 1.141 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.5659, allocations: 0 / 1.141 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.44e-05/0.566, allocations: 318.8 kB / 1.141 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.174e-05/0.566, allocations: 19.98 kB / 1.141 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.717e-05/0.5661, allocations: 97 kB / 1.141 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.839e-05/0.5662, allocations: 27.98 kB / 1.141 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5662, allocations: 0 / 1.141 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001531/0.5663, allocations: 117.4 kB / 1.141 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002975/0.5666, allocations: 0.9661 MB / 1.142 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5666, allocations: 4 kB / 1.142 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.5667, allocations: 0.6562 kB / 1.142 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.5668, allocations: 27.98 kB / 1.142 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5668, allocations: 7.938 kB / 1.142 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.5669, allocations: 11.84 kB / 1.142 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.5669, allocations: 8 kB / 1.142 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.591e-06/0.5669, allocations: 4 kB / 1.142 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001049/0.567, allocations: 80.05 kB / 1.142 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-06/0.567, allocations: 5.062 kB / 1.142 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.567e-06/0.567, allocations: 4 kB / 1.142 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.96e-05/0.5671, allocations: 23.94 kB / 1.142 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.216e-06/0.5671, allocations: 4 kB / 1.142 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.726e-05/0.5672, allocations: 15.83 kB / 1.142 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.5672, allocations: 4 kB / 1.142 GB, free: 6.238 MB / 0.7448 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 5.984e-05/0.5672, allocations: 109.5 kB / 1.142 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.5673, allocations: 15.75 kB / 1.142 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.413e-05/0.5673, allocations: 4.125 kB / 1.142 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.5673, allocations: 8.141 kB / 1.142 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.5673, allocations: 0 / 1.142 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5673, allocations: 4.641 kB / 1.142 GB, free: 6.09 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.5676, allocations: 416.8 kB / 1.143 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.5676, allocations: 4 kB / 1.143 GB, free: 5.625 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.588e-05/0.5677, allocations: 4 kB / 1.143 GB, free: 5.621 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.5677, allocations: 8.094 kB / 1.143 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-06/0.5677, allocations: 0 / 1.143 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5677, allocations: 0 / 1.143 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.5677, allocations: 3.938 kB / 1.143 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001021/0.5678, allocations: 124.6 kB / 1.143 GB, free: 5.453 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.5679, allocations: 92.89 kB / 1.143 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.5679, allocations: 0 / 1.143 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.409e-05/0.5679, allocations: 7.984 kB / 1.143 GB, free: 5.336 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.5679, allocations: 7.906 kB / 1.143 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.5679, allocations: 0 / 1.143 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.183e-05/0.568, allocations: 106.3 kB / 1.143 GB, free: 5.227 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003012/0.5683, allocations: 55.78 kB / 1.143 GB, free: 5.172 MB / 0.7448 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 7.972e-05/0.5684, allocations: 99.25 kB / 1.143 GB, free: 5.066 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001392/0.5685, allocations: 91.78 kB / 1.143 GB, free: 4.977 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5686, allocations: 0 / 1.143 GB, free: 4.977 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.566e-05/0.5686, allocations: 16 kB / 1.143 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.5687, allocations: 22.97 kB / 1.143 GB, free: 4.941 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002975/0.569, allocations: 169.1 kB / 1.144 GB, free: 4.746 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.5693, allocations: 0.736 MB / 1.144 GB, free: 3.988 MB / 0.7448 GB Notification: Performance of SimCode: time 2.51e-07/0.5693, allocations: 0 / 1.144 GB, free: 3.988 MB / 0.7448 GB Notification: Performance of Templates: time 0.002616/0.5719, allocations: 0.9398 MB / 1.145 GB, free: 3.059 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)