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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.56/1.56, allocations: 289.9 MB / 297.4 MB, free: 6.332 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.001021/0.001021, allocations: 176.9 kB / 366.7 MB, free: 1.648 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.506/1.506, allocations: 205.2 MB / 0.626 GB, free: 7.18 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.0009546/0.0009545, allocations: 96.02 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.011e-05/2.02e-05, allocations: 8 kB / 0.8597 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6677/0.6678, allocations: 116.3 MB / 0.9732 GB, free: 76.21 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2144/0.8822, allocations: 160.2 MB / 1.13 GB, free: 5.973 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.8825, allocations: 83.95 kB / 1.13 GB, free: 5.891 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 - DAE generated: time 0.02224/0.9048, allocations: 9.447 MB / 1.139 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9048, allocations: 0.5 kB / 1.139 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.9048, allocations: 0 / 1.139 GB, free: 12.42 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.0005793/0.9054, allocations: 416.9 kB / 1.139 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.9055, allocations: 8.031 kB / 1.139 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004432/0.9059, allocations: 55.75 kB / 1.139 GB, free: 11.91 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.9063, allocations: 214.9 kB / 1.14 GB, free: 11.66 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.9063, allocations: 8 kB / 1.14 GB, free: 11.65 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.9063, allocations: 8 kB / 1.14 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002516/0.9066, allocations: 129.3 kB / 1.14 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.9069, allocations: 204.7 kB / 1.14 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.9069, allocations: 0 / 1.14 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.9069, allocations: 0.75 kB / 1.14 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.212e-05/0.907, allocations: 12.28 kB / 1.14 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.9082, allocations: 1.096 MB / 1.141 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.71e-05/0.9083, allocations: 26.58 kB / 1.141 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.888e-05/0.9083, allocations: 8.859 kB / 1.141 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.9083, allocations: 0 / 1.141 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.9084, allocations: 42.52 kB / 1.141 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.9084, allocations: 0 / 1.141 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.000166/0.9086, allocations: 57.67 kB / 1.141 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.9086, allocations: 53.47 kB / 1.141 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.9087, allocations: 132.3 kB / 1.141 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.9088, allocations: 25.7 kB / 1.141 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.9089, allocations: 155 kB / 1.142 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.9089, allocations: 11.89 kB / 1.142 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-06/0.9089, allocations: 0 / 1.142 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.909, allocations: 326.8 kB / 1.142 GB, free: 9.18 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.739e-05/0.9091, allocations: 15.98 kB / 1.142 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.9092, allocations: 77.45 kB / 1.142 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.523e-05/0.9092, allocations: 39.91 kB / 1.142 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.9093, allocations: 0 / 1.142 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002168/0.9095, allocations: 113.4 kB / 1.142 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004544/0.9099, allocations: 0.9652 MB / 1.143 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.91, allocations: 4 kB / 1.143 GB, free: 7.855 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.91, allocations: 4 kB / 1.143 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.9101, allocations: 27.94 kB / 1.143 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.9101, allocations: 3.938 kB / 1.143 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.836e-05/0.9102, allocations: 19.84 kB / 1.143 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.9102, allocations: 4 kB / 1.143 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.9102, allocations: 4 kB / 1.143 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001403/0.9104, allocations: 75.78 kB / 1.143 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.9104, allocations: 0 / 1.143 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.9104, allocations: 7.141 kB / 1.143 GB, free: 7.715 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.509e-05/0.9105, allocations: 28.23 kB / 1.143 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.9105, allocations: 8 kB / 1.143 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.938e-05/0.9106, allocations: 11.84 kB / 1.143 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.9106, allocations: 15.98 kB / 1.143 GB, free: 7.652 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 8.145e-05/0.9107, allocations: 112.9 kB / 1.143 GB, free: 7.535 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.9107, allocations: 7.906 kB / 1.143 GB, free: 7.527 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.9108, allocations: 14.03 kB / 1.143 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.9108, allocations: 0 / 1.143 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.9108, allocations: 0 / 1.143 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.9108, allocations: 4 kB / 1.143 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.9112, allocations: 412.9 kB / 1.144 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.9112, allocations: 0 / 1.144 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.548e-05/0.9112, allocations: 4 kB / 1.144 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.9112, allocations: 0 / 1.144 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.9112, allocations: 4 kB / 1.144 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.9113, allocations: 0 / 1.144 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9113, allocations: 8.031 kB / 1.144 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.9114, allocations: 122.1 kB / 1.144 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/0.9115, allocations: 89.02 kB / 1.144 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.9115, allocations: 3 kB / 1.144 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.98e-05/0.9115, allocations: 4 kB / 1.144 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-05/0.9116, allocations: 11.94 kB / 1.144 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.9116, allocations: 0 / 1.144 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.974e-05/0.9116, allocations: 103.8 kB / 1.144 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9117, allocations: 0 / 1.144 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000373/0.912, allocations: 59.69 kB / 1.144 GB, free: 6.594 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.0001292/0.9122, allocations: 95.25 kB / 1.144 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000178/0.9124, allocations: 91.78 kB / 1.144 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.9124, allocations: 0 / 1.144 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.19e-05/0.9124, allocations: 15.94 kB / 1.144 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.9126, allocations: 19.45 kB / 1.144 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003853/0.913, allocations: 170.4 kB / 1.145 GB, free: 6.18 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.9133, allocations: 0.7241 MB / 1.145 GB, free: 5.43 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001206/0.9135, allocations: 35.8 kB / 1.145 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.9135, allocations: 15.44 kB / 1.145 GB, free: 5.379 MB / 0.7448 GB Notification: Performance of SimCode: time 2.3e-07/0.9135, allocations: 0 / 1.145 GB, free: 5.379 MB / 0.7448 GB Notification: Performance of Templates: time 0.002897/0.9164, allocations: 0.7227 MB / 1.146 GB, free: 4.691 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)