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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 293 MB / 309 MB, free: 4.805 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.001501/0.001501, allocations: 170.7 kB / 378.7 MB, free: 1.031 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.744/1.744, allocations: 205.4 MB / 0.6383 GB, free: 8.23 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.0007144/0.0007144, allocations: 96.69 kB / 0.7527 GB, free: 62.69 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004079/0.0004081, allocations: 12 kB / 0.8768 GB, free: 10.45 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2518, allocations: 116.4 MB / 0.9904 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.661/0.9129, allocations: 161 MB / 1.148 GB, free: 17.16 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.9131, allocations: 94.34 kB / 1.148 GB, free: 17.08 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-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 - DAE generated: time 0.0204/0.9336, allocations: 9.561 MB / 1.157 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9336, allocations: 0 / 1.157 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.9336, allocations: 4 kB / 1.157 GB, free: 10.3 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.0004282/0.934, allocations: 429 kB / 1.158 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.9341, allocations: 11.88 kB / 1.158 GB, free: 9.836 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.9345, allocations: 53.36 kB / 1.158 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.9347, allocations: 217.3 kB / 1.158 GB, free: 9.555 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.9347, allocations: 12.59 kB / 1.158 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.9347, allocations: 16.36 kB / 1.158 GB, free: 9.527 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.935, allocations: 232.2 kB / 1.158 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.935, allocations: 192 / 1.158 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.9351, allocations: 7.938 kB / 1.158 GB, free: 9.305 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.772e-05/0.9351, allocations: 20.3 kB / 1.158 GB, free: 9.289 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.9353, allocations: 146 kB / 1.158 GB, free: 9.168 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000784/0.9361, allocations: 1.135 MB / 1.159 GB, free: 7.984 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 4.158e-05/0.9361, allocations: 32.91 kB / 1.159 GB, free: 7.945 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.325e-05/0.9362, allocations: 15.72 kB / 1.159 GB, free: 7.93 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-06/0.9362, allocations: 0 / 1.159 GB, free: 7.93 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.9362, allocations: 30.56 kB / 1.159 GB, free: 7.891 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.9362, allocations: 4 kB / 1.159 GB, free: 7.887 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001524/0.9364, allocations: 72.34 kB / 1.159 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.059e-05/0.9364, allocations: 55.34 kB / 1.16 GB, free: 7.75 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.9365, allocations: 180.3 kB / 1.16 GB, free: 7.578 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.9365, allocations: 29.7 kB / 1.16 GB, free: 7.543 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.9366, allocations: 143.2 kB / 1.16 GB, free: 7.406 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.636e-06/0.9366, allocations: 9.406 kB / 1.16 GB, free: 7.398 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.9366, allocations: 4 kB / 1.16 GB, free: 7.395 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.236e-05/0.9366, allocations: 318.2 kB / 1.16 GB, free: 7.078 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.537e-05/0.9367, allocations: 18.81 kB / 1.16 GB, free: 7.062 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.937e-05/0.9367, allocations: 91.31 kB / 1.16 GB, free: 6.945 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.236e-05/0.9368, allocations: 122.2 kB / 1.16 GB, free: 6.797 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.9369, allocations: 4 kB / 1.16 GB, free: 6.793 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001663/0.937, allocations: 132.6 kB / 1.161 GB, free: 6.668 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/0.9371, allocations: 169.7 kB / 1.161 GB, free: 6.469 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.9371, allocations: 1.078 kB / 1.161 GB, free: 6.469 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.9371, allocations: 4 kB / 1.161 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.9372, allocations: 30.33 kB / 1.161 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.9373, allocations: 5.078 kB / 1.161 GB, free: 6.434 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.09e-05/0.9373, allocations: 19.69 kB / 1.161 GB, free: 6.414 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.9374, allocations: 13.12 kB / 1.161 GB, free: 6.402 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/0.9374, allocations: 4 kB / 1.161 GB, free: 6.398 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00012/0.9375, allocations: 99.47 kB / 1.161 GB, free: 6.312 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.9375, allocations: 9.766 kB / 1.161 GB, free: 6.305 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.156e-06/0.9375, allocations: 0 / 1.161 GB, free: 6.305 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.503e-05/0.9376, allocations: 21.78 kB / 1.161 GB, free: 6.285 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.9376, allocations: 10.17 kB / 1.161 GB, free: 6.277 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.628e-05/0.9377, allocations: 7.953 kB / 1.161 GB, free: 6.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.9377, allocations: 19.92 kB / 1.161 GB, free: 6.25 MB / 0.7292 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 () * Number of clocked 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 8.881e-05/0.9378, allocations: 209.6 kB / 1.161 GB, free: 6.039 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.9378, allocations: 7.906 kB / 1.161 GB, free: 6.031 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.9378, allocations: 14.67 kB / 1.161 GB, free: 6.016 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.9378, allocations: 7.938 kB / 1.161 GB, free: 6.008 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.9379, allocations: 1.562 kB / 1.161 GB, free: 6.008 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.9379, allocations: 6.328 kB / 1.161 GB, free: 6.004 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.9382, allocations: 451.6 kB / 1.162 GB, free: 5.523 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.9382, allocations: 4 kB / 1.162 GB, free: 5.52 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.356e-05/0.9382, allocations: 5.734 kB / 1.162 GB, free: 5.516 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.9382, allocations: 8.031 kB / 1.162 GB, free: 5.508 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.9382, allocations: 0 / 1.162 GB, free: 5.508 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.9382, allocations: 4 kB / 1.162 GB, free: 5.504 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9382, allocations: 0 / 1.162 GB, free: 5.504 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.504e-05/0.9383, allocations: 100.8 kB / 1.162 GB, free: 5.387 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.9384, allocations: 94.22 kB / 1.162 GB, free: 5.277 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.9384, allocations: 10.53 kB / 1.162 GB, free: 5.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.099e-05/0.9384, allocations: 0 / 1.162 GB, free: 5.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.327e-05/0.9384, allocations: 5.5 kB / 1.162 GB, free: 5.266 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.9384, allocations: 0 / 1.162 GB, free: 5.266 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 7.409e-05/0.9385, allocations: 130 kB / 1.162 GB, free: 5.148 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9385, allocations: 0 / 1.162 GB, free: 5.148 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003209/0.9389, allocations: 51.84 kB / 1.162 GB, free: 5.098 MB / 0.7292 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 () * Number of clocked 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 8.101e-05/0.9389, allocations: 100.8 kB / 1.162 GB, free: 4.992 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001618/0.9391, allocations: 106.4 kB / 1.162 GB, free: 4.898 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.9391, allocations: 0 / 1.162 GB, free: 4.898 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.633e-05/0.9391, allocations: 10.95 kB / 1.162 GB, free: 4.891 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.9394, allocations: 33.55 kB / 1.162 GB, free: 4.863 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003935/0.9398, allocations: 310 kB / 1.163 GB, free: 4.562 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.9399, allocations: 0.7186 MB / 1.163 GB, free: 3.836 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 9.435e-05/0.94, allocations: 33.27 kB / 1.163 GB, free: 3.816 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.94, allocations: 11.44 kB / 1.163 GB, free: 3.805 MB / 0.7292 GB Notification: Performance of SimCode: time 2.41e-07/0.9401, allocations: 0 / 1.163 GB, free: 3.805 MB / 0.7292 GB Notification: Performance of Templates: time 0.00258/0.9426, allocations: 0.7719 MB / 1.164 GB, free: 3.23 MB / 0.7292 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)