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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.703/1.703, allocations: 292.6 MB / 307.5 MB, free: 5.195 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.001354/0.001354, allocations: 192 kB / 377.1 MB, free: 1.52 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.503/1.503, allocations: 205.4 MB / 0.6366 GB, free: 9.57 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.0009791/0.0009788, allocations: 93.33 kB / 0.7509 GB, free: 62.37 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003735, allocations: 8 kB / 0.8749 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2196, allocations: 116.3 MB / 0.9884 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7185/0.9381, allocations: 161 MB / 1.146 GB, free: 18.11 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.9385, allocations: 93.33 kB / 1.146 GB, free: 18.04 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.02247/0.961, allocations: 9.564 MB / 1.155 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.292e-06/0.961, allocations: 0 / 1.155 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.229e-05/0.961, allocations: 7.938 kB / 1.155 GB, free: 11.22 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.0005079/0.9615, allocations: 436.5 kB / 1.155 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.9616, allocations: 16.02 kB / 1.155 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.9616, allocations: 46.22 kB / 1.156 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.962, allocations: 46.12 kB / 1.156 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.9623, allocations: 222 kB / 1.156 GB, free: 10.42 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.9623, allocations: 12.78 kB / 1.156 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.9623, allocations: 12 kB / 1.156 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003343/0.9627, allocations: 221.6 kB / 1.156 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.9627, allocations: 0 / 1.156 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.9627, allocations: 17.61 kB / 1.156 GB, free: 10.18 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.723e-05/0.9628, allocations: 14.25 kB / 1.156 GB, free: 10.17 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.963, allocations: 149.2 kB / 1.156 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009309/0.9639, allocations: 1.139 MB / 1.157 GB, free: 8.855 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 4.806e-05/0.964, allocations: 21.86 kB / 1.157 GB, free: 8.828 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.964, allocations: 7.891 kB / 1.157 GB, free: 8.82 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.964, allocations: 38.56 kB / 1.157 GB, free: 8.773 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.964, allocations: 0 / 1.157 GB, free: 8.773 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001685/0.9642, allocations: 63 kB / 1.157 GB, free: 8.711 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.9642, allocations: 52.77 kB / 1.157 GB, free: 8.648 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.9644, allocations: 164.2 kB / 1.158 GB, free: 8.492 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.694e-06/0.9644, allocations: 25.7 kB / 1.158 GB, free: 8.461 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.257e-05/0.9644, allocations: 147.3 kB / 1.158 GB, free: 8.32 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.768e-06/0.9644, allocations: 13.45 kB / 1.158 GB, free: 8.309 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.9645, allocations: 0 / 1.158 GB, free: 8.309 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.093e-05/0.9645, allocations: 322.7 kB / 1.158 GB, free: 7.988 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.27e-05/0.9646, allocations: 22.48 kB / 1.158 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.374e-05/0.9646, allocations: 87.3 kB / 1.158 GB, free: 7.855 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.391e-05/0.9647, allocations: 34.86 kB / 1.158 GB, free: 7.824 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.9647, allocations: 4 kB / 1.158 GB, free: 7.82 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001646/0.9649, allocations: 133.4 kB / 1.158 GB, free: 7.695 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.965, allocations: 0.9625 MB / 1.159 GB, free: 6.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.9651, allocations: 8.703 kB / 1.159 GB, free: 6.652 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.9651, allocations: 4 kB / 1.159 GB, free: 6.648 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.9652, allocations: 27.92 kB / 1.159 GB, free: 6.625 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.9652, allocations: 4 kB / 1.159 GB, free: 6.621 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.9653, allocations: 23.78 kB / 1.159 GB, free: 6.598 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.9653, allocations: 4 kB / 1.159 GB, free: 6.594 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.314e-06/0.9653, allocations: 5.406 kB / 1.159 GB, free: 6.59 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001174/0.9654, allocations: 93.72 kB / 1.159 GB, free: 6.508 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.9654, allocations: 4.312 kB / 1.159 GB, free: 6.504 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.749e-06/0.9655, allocations: 10.16 kB / 1.16 GB, free: 6.496 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.598e-05/0.9655, allocations: 33.38 kB / 1.16 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.9655, allocations: 5.547 kB / 1.16 GB, free: 6.461 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.509e-05/0.9656, allocations: 9.406 kB / 1.16 GB, free: 6.453 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.9656, allocations: 4 kB / 1.16 GB, free: 6.449 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 9.302e-05/0.9657, allocations: 220.1 kB / 1.16 GB, free: 6.227 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.9657, allocations: 17.48 kB / 1.16 GB, free: 6.211 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.9658, allocations: 14.06 kB / 1.16 GB, free: 6.195 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.9658, allocations: 4 kB / 1.16 GB, free: 6.191 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.9658, allocations: 0 / 1.16 GB, free: 6.191 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.9658, allocations: 1.312 kB / 1.16 GB, free: 6.191 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.9661, allocations: 455.2 kB / 1.16 GB, free: 5.707 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9661, allocations: 0 / 1.16 GB, free: 5.707 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-05/0.9661, allocations: 5.594 kB / 1.16 GB, free: 5.703 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.9661, allocations: 8.031 kB / 1.16 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.9662, allocations: 5.062 kB / 1.16 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.9662, allocations: 0.9375 kB / 1.16 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.9662, allocations: 0 / 1.16 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.986e-05/0.9663, allocations: 124.3 kB / 1.16 GB, free: 5.539 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-05/0.9663, allocations: 88.3 kB / 1.16 GB, free: 5.438 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.9663, allocations: 7.953 kB / 1.16 GB, free: 5.43 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.289e-05/0.9664, allocations: 0 / 1.16 GB, free: 5.43 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.9664, allocations: 5.031 kB / 1.16 GB, free: 5.426 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.9664, allocations: 9.25 kB / 1.16 GB, free: 5.418 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.141e-05/0.9665, allocations: 127.3 kB / 1.161 GB, free: 5.305 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9665, allocations: 0 / 1.161 GB, free: 5.305 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003159/0.9668, allocations: 55.75 kB / 1.161 GB, free: 5.25 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 0.0002759/0.9671, allocations: 0.7891 MB / 1.161 GB, free: 4.426 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001569/0.9673, allocations: 111.2 kB / 1.162 GB, free: 4.328 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.9673, allocations: 4 kB / 1.162 GB, free: 4.324 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.824e-05/0.9673, allocations: 17.34 kB / 1.162 GB, free: 4.309 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.9675, allocations: 18.88 kB / 1.162 GB, free: 4.297 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.969, allocations: 2.296 MB / 1.164 GB, free: 1.973 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.9692, allocations: 0.7258 MB / 1.165 GB, free: 1.242 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.9694, allocations: 26.08 kB / 1.165 GB, free: 1.227 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.9694, allocations: 34.39 kB / 1.165 GB, free: 1.195 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/0.9694, allocations: 0 / 1.165 GB, free: 1.195 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.9829, allocations: 2.111 MB / 1.167 GB, free: 15.57 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/0.9832, allocations: 181 kB / 1.167 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.646, allocations: 0 / 1.167 GB, free: 15.34 MB / 0.7448 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)