Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.335/1.335, allocations: 285.5 MB / 292.8 MB, free: 10.46 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.0009374/0.0009374, allocations: 181.3 kB / 361.1 MB, free: 7.098 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.03/1.03, allocations: 205.2 MB / 0.6195 GB, free: 10.29 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.0007897/0.0007897, allocations: 85.88 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.35e-06/5.35e-06, allocations: 0 / 0.8511 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.4107, allocations: 115.3 MB / 0.9637 GB, free: 78.06 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.5589, allocations: 159.2 MB / 1.119 GB, free: 12.81 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.5591, allocations: 86.11 kB / 1.119 GB, free: 12.73 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.0.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.02033/0.5795, allocations: 9.096 MB / 1.128 GB, free: 3.637 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.173e-05/0.5795, allocations: 8.5 kB / 1.128 GB, free: 3.629 MB / 0.7292 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.0004221/0.5799, allocations: 408 kB / 1.128 GB, free: 3.184 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.58, allocations: 13.47 kB / 1.128 GB, free: 3.172 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004283/0.5804, allocations: 52.27 kB / 1.129 GB, free: 3.121 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.5807, allocations: 211.5 kB / 1.129 GB, free: 2.875 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.5807, allocations: 4.5 kB / 1.129 GB, free: 2.871 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.5807, allocations: 9.312 kB / 1.129 GB, free: 2.863 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002309/0.5809, allocations: 133.5 kB / 1.129 GB, free: 2.734 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.5812, allocations: 205.3 kB / 1.129 GB, free: 2.516 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.5812, allocations: 0 / 1.129 GB, free: 2.516 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.5813, allocations: 0.5312 kB / 1.129 GB, free: 2.516 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.5813, allocations: 21.8 kB / 1.129 GB, free: 2.496 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.5823, allocations: 1.163 MB / 1.13 GB, free: 1.195 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 3.894e-05/0.5823, allocations: 26.52 kB / 1.13 GB, free: 1.16 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.787e-05/0.5824, allocations: 16.94 kB / 1.13 GB, free: 1.141 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.16e-06/0.5824, allocations: 0 / 1.13 GB, free: 1.141 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.5824, allocations: 34.56 kB / 1.13 GB, free: 1.098 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 9.21e-07/0.5824, allocations: 4 kB / 1.13 GB, free: 1.094 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001349/0.5826, allocations: 57.58 kB / 1.13 GB, free: 1.031 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.5826, allocations: 51.41 kB / 1.13 GB, free: 0.9688 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.5827, allocations: 137.9 kB / 1.131 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.5827, allocations: 25.7 kB / 1.131 GB, free: 0.7969 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.937e-05/0.5828, allocations: 143.3 kB / 1.131 GB, free: 0.6523 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.987e-06/0.5828, allocations: 15.81 kB / 1.131 GB, free: 0.6367 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.5828, allocations: 0 / 1.131 GB, free: 0.6367 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5829, allocations: 322.8 kB / 1.131 GB, free: 320 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.067e-05/0.583, allocations: 23.94 kB / 1.131 GB, free: 296 kB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.453e-05/0.5831, allocations: 81.44 kB / 1.131 GB, free: 180 kB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.596e-05/0.5831, allocations: 31.98 kB / 1.131 GB, free: 148 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5831, allocations: 4 kB / 1.131 GB, free: 144 kB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001744/0.5833, allocations: 117.5 kB / 1.131 GB, free: 20 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.000315/0.5836, allocations: 0.9571 MB / 1.132 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.5836, allocations: 4 kB / 1.132 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.5837, allocations: 4 kB / 1.132 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.5838, allocations: 27.98 kB / 1.132 GB, free: 14.95 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.5838, allocations: 9.062 kB / 1.132 GB, free: 14.95 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.409e-05/0.5839, allocations: 13.06 kB / 1.132 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.5839, allocations: 8 kB / 1.132 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.841e-06/0.5839, allocations: 4 kB / 1.132 GB, free: 14.92 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001193/0.584, allocations: 79.77 kB / 1.132 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.584, allocations: 4 kB / 1.132 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.03e-06/0.584, allocations: 4 kB / 1.132 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.558e-05/0.5841, allocations: 23.92 kB / 1.132 GB, free: 14.81 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.5841, allocations: 8.312 kB / 1.132 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.986e-05/0.5842, allocations: 11.84 kB / 1.132 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.5842, allocations: 9.062 kB / 1.132 GB, free: 14.79 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.719e-05/0.5843, allocations: 101 kB / 1.133 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.5843, allocations: 11.81 kB / 1.133 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.5844, allocations: 16.06 kB / 1.133 GB, free: 14.65 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.5844, allocations: 1.031 kB / 1.133 GB, free: 14.65 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5844, allocations: 3.984 kB / 1.133 GB, free: 14.64 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.5844, allocations: 0 / 1.133 GB, free: 14.64 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.5847, allocations: 416.8 kB / 1.133 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5847, allocations: 0 / 1.133 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.907e-05/0.5848, allocations: 9.375 kB / 1.133 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.5848, allocations: 0 / 1.133 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.5848, allocations: 3.984 kB / 1.133 GB, free: 14.17 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5848, allocations: 0 / 1.133 GB, free: 14.17 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5848, allocations: 7.938 kB / 1.133 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001007/0.5849, allocations: 118.2 kB / 1.133 GB, free: 14.01 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.585, allocations: 89.94 kB / 1.133 GB, free: 13.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.585, allocations: 7.938 kB / 1.133 GB, free: 13.9 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.469e-05/0.585, allocations: 4 kB / 1.133 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.585, allocations: 3.906 kB / 1.133 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.5851, allocations: 5.562 kB / 1.133 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.177e-05/0.5851, allocations: 110.3 kB / 1.133 GB, free: 13.78 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003453/0.5855, allocations: 51.78 kB / 1.133 GB, free: 13.73 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 0.0001021/0.5856, allocations: 103 kB / 1.133 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000172/0.5858, allocations: 100.7 kB / 1.134 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5858, allocations: 0 / 1.134 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.857e-05/0.5858, allocations: 13.22 kB / 1.134 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.586, allocations: 15.89 kB / 1.134 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.5863, allocations: 171 kB / 1.134 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.5866, allocations: 0.7404 MB / 1.134 GB, free: 12.53 MB / 0.7448 GB Notification: Performance of SimCode: time 2.61e-07/0.5866, allocations: 0 / 1.134 GB, free: 12.53 MB / 0.7448 GB Notification: Performance of Templates: time 0.002822/0.5894, allocations: 0.9491 MB / 1.135 GB, free: 11.63 MB / 0.7448 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)