Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.233/2.233, allocations: 248.5 MB / 261 MB, free: 6.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001543/0.001543, allocations: 174.9 kB / 320.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205.2 MB / 0.571 GB, free: 11.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 90.48 kB / 0.6754 GB, free: 0.8711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.357e-05, allocations: 0 / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.202, allocations: 106.2 MB / 0.8907 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8583/1.06, allocations: 153.4 MB / 1.041 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003667/1.061, allocations: 90.92 kB / 1.041 GB, free: 15.75 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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.03709/1.098, allocations: 9.484 MB / 1.05 GB, free: 8.047 MB / 0.6667 GB Notification: Performance of FrontEnd: time 4.679e-06/1.098, allocations: 0 / 1.05 GB, free: 8.047 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.78e-05/1.098, allocations: 7.938 kB / 1.05 GB, free: 8.039 MB / 0.6667 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.0007206/1.099, allocations: 417.3 kB / 1.05 GB, free: 7.594 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/1.099, allocations: 8.031 kB / 1.05 GB, free: 7.586 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.878e-05/1.099, allocations: 52.36 kB / 1.05 GB, free: 7.535 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006313/1.1, allocations: 60.05 kB / 1.05 GB, free: 7.477 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/1.1, allocations: 213.4 kB / 1.051 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/1.1, allocations: 7.781 kB / 1.051 GB, free: 7.234 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/1.1, allocations: 11.5 kB / 1.051 GB, free: 7.227 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005102/1.1, allocations: 225.4 kB / 1.051 GB, free: 7.035 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/1.101, allocations: 0 / 1.051 GB, free: 7.035 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/1.101, allocations: 10.17 kB / 1.051 GB, free: 7.031 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.61e-05/1.101, allocations: 16.28 kB / 1.051 GB, free: 7.016 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003984/1.101, allocations: 144.5 kB / 1.051 GB, free: 6.918 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/1.103, allocations: 1.145 MB / 1.052 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 7.872e-05/1.103, allocations: 30 kB / 1.052 GB, free: 5.691 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.272e-05/1.103, allocations: 12.86 kB / 1.052 GB, free: 5.676 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/1.103, allocations: 0 / 1.052 GB, free: 5.676 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/1.103, allocations: 34.44 kB / 1.052 GB, free: 5.637 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.603e-06/1.103, allocations: 0 / 1.052 GB, free: 5.637 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0002027/1.103, allocations: 57.5 kB / 1.052 GB, free: 5.578 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/1.103, allocations: 51.41 kB / 1.052 GB, free: 5.516 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/1.103, allocations: 161.3 kB / 1.052 GB, free: 5.363 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/1.103, allocations: 33.7 kB / 1.052 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/1.104, allocations: 138.9 kB / 1.053 GB, free: 5.195 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/1.104, allocations: 15.48 kB / 1.053 GB, free: 5.184 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-06/1.104, allocations: 4 kB / 1.053 GB, free: 5.18 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001305/1.104, allocations: 318 kB / 1.053 GB, free: 4.867 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.407e-05/1.104, allocations: 19.48 kB / 1.053 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/1.104, allocations: 88.02 kB / 1.053 GB, free: 4.742 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/1.104, allocations: 38.47 kB / 1.053 GB, free: 4.711 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/1.104, allocations: 3.938 kB / 1.053 GB, free: 4.707 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003244/1.104, allocations: 138.1 kB / 1.053 GB, free: 4.582 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004645/1.105, allocations: 0.9612 MB / 1.054 GB, free: 3.562 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.342e-05/1.105, allocations: 4 kB / 1.054 GB, free: 3.559 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/1.105, allocations: 4 kB / 1.054 GB, free: 3.555 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/1.105, allocations: 27.86 kB / 1.054 GB, free: 3.531 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/1.105, allocations: 7.938 kB / 1.054 GB, free: 3.523 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/1.105, allocations: 11.84 kB / 1.054 GB, free: 3.512 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/1.105, allocations: 4 kB / 1.054 GB, free: 3.508 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/1.105, allocations: 4 kB / 1.054 GB, free: 3.504 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002616/1.106, allocations: 103.1 kB / 1.054 GB, free: 3.422 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/1.106, allocations: 0 / 1.054 GB, free: 3.422 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/1.106, allocations: 4 kB / 1.054 GB, free: 3.418 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/1.106, allocations: 23.98 kB / 1.054 GB, free: 3.395 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/1.106, allocations: 7.938 kB / 1.054 GB, free: 3.387 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/1.106, allocations: 19.61 kB / 1.054 GB, free: 3.371 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/1.106, allocations: 8.312 kB / 1.054 GB, free: 3.363 MB / 0.6667 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 9.295e-05/1.106, allocations: 107.7 kB / 1.054 GB, free: 3.254 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/1.106, allocations: 11.91 kB / 1.054 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.321e-05/1.106, allocations: 16.73 kB / 1.054 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/1.106, allocations: 144 / 1.054 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/1.106, allocations: 3.984 kB / 1.054 GB, free: 3.227 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/1.106, allocations: 3.938 kB / 1.054 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/1.107, allocations: 464.8 kB / 1.055 GB, free: 2.734 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/1.107, allocations: 0 / 1.055 GB, free: 2.734 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/1.107, allocations: 4 kB / 1.055 GB, free: 2.73 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/1.107, allocations: 4 kB / 1.055 GB, free: 2.727 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/1.107, allocations: 0 / 1.055 GB, free: 2.727 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/1.107, allocations: 3.953 kB / 1.055 GB, free: 2.723 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.107, allocations: 4 kB / 1.055 GB, free: 2.719 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/1.107, allocations: 123.7 kB / 1.055 GB, free: 2.57 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 9.329e-05/1.108, allocations: 92.28 kB / 1.055 GB, free: 2.465 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/1.108, allocations: 4 kB / 1.055 GB, free: 2.461 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.327e-05/1.108, allocations: 3.984 kB / 1.055 GB, free: 2.457 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/1.108, allocations: 4 kB / 1.055 GB, free: 2.453 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/1.108, allocations: 4 kB / 1.055 GB, free: 2.449 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000158/1.108, allocations: 134 kB / 1.055 GB, free: 2.336 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.61e-07/1.108, allocations: 4 kB / 1.055 GB, free: 2.332 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004841/1.108, allocations: 51.28 kB / 1.055 GB, free: 2.285 MB / 0.6667 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.000573/1.109, allocations: 0.7949 MB / 1.056 GB, free: 1.453 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000356/1.109, allocations: 108.5 kB / 1.056 GB, free: 1.367 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.109, allocations: 0 / 1.056 GB, free: 1.367 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 3.779e-05/1.109, allocations: 20 kB / 1.056 GB, free: 1.352 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/1.11, allocations: 21.05 kB / 1.056 GB, free: 1.336 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007431/1.11, allocations: 219.6 kB / 1.056 GB, free: 1.098 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/1.111, allocations: 0.7313 MB / 1.057 GB, free: 356 kB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000205/1.111, allocations: 36.73 kB / 1.057 GB, free: 320 kB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.271e-05/1.111, allocations: 31.8 kB / 1.057 GB, free: 304 kB / 0.6667 GB Notification: Performance of SimCode: time 1.173e-06/1.111, allocations: 0 / 1.057 GB, free: 304 kB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/1.132, allocations: 2.176 MB / 1.059 GB, free: 14.24 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002814/1.133, allocations: 180.8 kB / 1.06 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.283/3.416, allocations: 0 / 1.06 GB, free: 14.01 MB / 0.6823 GB