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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.755/1.755, allocations: 285.6 MB / 293.1 MB, free: 10.24 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.001124/0.001124, allocations: 176.9 kB / 361.4 MB, free: 6.816 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.712/1.712, allocations: 205.2 MB / 0.62 GB, free: 11.65 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.0008596/0.0008596, allocations: 78.78 kB / 0.733 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.113e-05, allocations: 4 kB / 0.8518 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.758/0.758, allocations: 115.3 MB / 0.9644 GB, free: 78.72 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2258/0.9839, allocations: 159.3 MB / 1.12 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.9842, allocations: 79.95 kB / 1.12 GB, free: 12.38 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 - DAE generated: time 0.02284/1.007, allocations: 9.449 MB / 1.129 GB, free: 2.926 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.362e-06/1.007, allocations: 0 / 1.129 GB, free: 2.926 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.181e-05/1.007, allocations: 4 kB / 1.129 GB, free: 2.922 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.0006368/1.008, allocations: 419.4 kB / 1.13 GB, free: 2.465 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.591e-05/1.008, allocations: 8.031 kB / 1.13 GB, free: 2.457 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004794/1.008, allocations: 51.33 kB / 1.13 GB, free: 2.41 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/1.009, allocations: 215.1 kB / 1.13 GB, free: 2.16 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/1.009, allocations: 8 kB / 1.13 GB, free: 2.152 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/1.009, allocations: 7.938 kB / 1.13 GB, free: 2.145 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000262/1.009, allocations: 132.2 kB / 1.13 GB, free: 2.016 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/1.009, allocations: 199.8 kB / 1.13 GB, free: 1.801 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/1.009, allocations: 4 kB / 1.13 GB, free: 1.797 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/1.009, allocations: 1.875 kB / 1.13 GB, free: 1.797 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.5e-05/1.009, allocations: 16.2 kB / 1.13 GB, free: 1.781 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/1.011, allocations: 1.082 MB / 1.131 GB, free: 0.582 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 5.873e-05/1.011, allocations: 30.58 kB / 1.131 GB, free: 0.543 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.876e-05/1.011, allocations: 12.86 kB / 1.131 GB, free: 0.5273 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-06/1.011, allocations: 96 / 1.131 GB, free: 0.5273 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/1.011, allocations: 38.5 kB / 1.131 GB, free: 492 kB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/1.011, allocations: 0 / 1.131 GB, free: 492 kB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001768/1.011, allocations: 57.53 kB / 1.131 GB, free: 428 kB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/1.011, allocations: 51.41 kB / 1.132 GB, free: 364 kB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/1.011, allocations: 128.4 kB / 1.132 GB, free: 228 kB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/1.011, allocations: 29.7 kB / 1.132 GB, free: 192 kB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.248e-05/1.011, allocations: 151.2 kB / 1.132 GB, free: 36 kB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.185e-05/1.011, allocations: 11.89 kB / 1.132 GB, free: 24 kB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-06/1.011, allocations: 0 / 1.132 GB, free: 24 kB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001504/1.012, allocations: 318.8 kB / 1.132 GB, free: 15.7 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.928e-05/1.012, allocations: 19.92 kB / 1.132 GB, free: 15.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.763e-05/1.012, allocations: 89.44 kB / 1.132 GB, free: 15.56 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.556e-05/1.012, allocations: 35.92 kB / 1.132 GB, free: 15.53 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.012, allocations: 0 / 1.132 GB, free: 15.53 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000203/1.012, allocations: 113 kB / 1.132 GB, free: 15.41 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.000416/1.012, allocations: 0.9613 MB / 1.133 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/1.012, allocations: 8 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/1.012, allocations: 4 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/1.013, allocations: 31.88 kB / 1.133 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/1.013, allocations: 0 / 1.133 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.974e-05/1.013, allocations: 15.84 kB / 1.133 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/1.013, allocations: 8 kB / 1.133 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/1.013, allocations: 4.781 kB / 1.133 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001361/1.013, allocations: 79.92 kB / 1.133 GB, free: 14.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-06/1.013, allocations: 0 / 1.133 GB, free: 14.23 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.434e-06/1.013, allocations: 8.031 kB / 1.133 GB, free: 14.22 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.854e-05/1.013, allocations: 27.94 kB / 1.134 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/1.013, allocations: 7.984 kB / 1.134 GB, free: 14.19 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.44e-05/1.013, allocations: 11.84 kB / 1.134 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/1.013, allocations: 6.5 kB / 1.134 GB, free: 14.17 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.766e-05/1.013, allocations: 114.2 kB / 1.134 GB, free: 14.05 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001003/1.013, allocations: 59.47 kB / 1.134 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/1.013, allocations: 7.906 kB / 1.134 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/1.013, allocations: 12.34 kB / 1.134 GB, free: 13.97 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/1.013, allocations: 0 / 1.134 GB, free: 13.97 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.013, allocations: 0 / 1.134 GB, free: 13.97 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.013, allocations: 3.984 kB / 1.134 GB, free: 13.97 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/1.014, allocations: 412.9 kB / 1.134 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/1.014, allocations: 0 / 1.134 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/1.014, allocations: 4 kB / 1.134 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/1.014, allocations: 0 / 1.134 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/1.014, allocations: 4 kB / 1.134 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/1.014, allocations: 7.922 kB / 1.134 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.014, allocations: 3.938 kB / 1.134 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/1.014, allocations: 122.2 kB / 1.134 GB, free: 13.34 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.855e-05/1.014, allocations: 89 kB / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/1.014, allocations: 3.953 kB / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.15e-05/1.014, allocations: 0 / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/1.014, allocations: 0 / 1.134 GB, free: 13.23 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-06/1.014, allocations: 4.688 kB / 1.134 GB, free: 13.22 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.982e-05/1.014, allocations: 110.5 kB / 1.134 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.1e-07/1.014, allocations: 0 / 1.134 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003812/1.015, allocations: 61.66 kB / 1.135 GB, free: 13.06 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.0004514/1.015, allocations: 0.7989 MB / 1.135 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001827/1.015, allocations: 91.78 kB / 1.135 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.015, allocations: 0 / 1.135 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.986e-05/1.015, allocations: 17.19 kB / 1.135 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/1.016, allocations: 15.98 kB / 1.135 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005418/1.016, allocations: 219.7 kB / 1.136 GB, free: 11.83 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/1.016, allocations: 0.7241 MB / 1.136 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001134/1.017, allocations: 28.52 kB / 1.136 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/1.017, allocations: 35.42 kB / 1.136 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of SimCode: time 6.91e-07/1.017, allocations: 0 / 1.136 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/1.038, allocations: 1.648 MB / 1.138 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/1.038, allocations: 160.3 kB / 1.138 GB, free: 9.238 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.739, allocations: 3.391 kB / 1.138 GB, free: 9.238 MB / 0.7448 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)