Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.419/1.419, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 178.6 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 0.5775 GB, free: 20.2 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.0008212/0.0008212, allocations: 90.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003361, allocations: 9.156 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1871, allocations: 106.3 MB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.3601, allocations: 153.7 MB / 1.05 GB, free: 5.93 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.3604, allocations: 87.95 kB / 1.05 GB, free: 5.844 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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.41/0.7704, allocations: 9.557 MB / 1.06 GB, free: 152.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7704, allocations: 0 / 1.06 GB, free: 152.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.7705, allocations: 6.125 kB / 1.06 GB, free: 152.3 MB / 0.698 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.0004033/0.7709, allocations: 442.2 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.7709, allocations: 8.969 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.771, allocations: 50.53 kB / 1.06 GB, free: 151.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.7714, allocations: 52.78 kB / 1.06 GB, free: 151.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.7716, allocations: 209.5 kB / 1.06 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.7716, allocations: 13.12 kB / 1.06 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.239e-05/0.7716, allocations: 16.89 kB / 1.06 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.7719, allocations: 218.7 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.772, allocations: 0 / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.772, allocations: 14.34 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.758e-05/0.772, allocations: 13.67 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.7722, allocations: 145.4 kB / 1.061 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009457/0.7732, allocations: 1.144 MB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.24e-05/0.7732, allocations: 33.09 kB / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.04e-06/0.7733, allocations: 0 / 1.062 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.7733, allocations: 31.22 kB / 1.062 GB, free: 150.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.7733, allocations: 3.938 kB / 1.062 GB, free: 150.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001513/0.7734, allocations: 70.02 kB / 1.062 GB, free: 150.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.174e-05/0.7735, allocations: 52.11 kB / 1.062 GB, free: 150.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.7736, allocations: 158 kB / 1.062 GB, free: 150.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.213e-06/0.7736, allocations: 26.36 kB / 1.062 GB, free: 150.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.077e-05/0.7737, allocations: 151.6 kB / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.161e-05/0.7737, allocations: 17.84 kB / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.7737, allocations: 0 / 1.062 GB, free: 150.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.7737, allocations: 323.4 kB / 1.063 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.358e-05/0.7738, allocations: 18.92 kB / 1.063 GB, free: 149.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.499e-05/0.7738, allocations: 92.89 kB / 1.063 GB, free: 149.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.313e-05/0.7739, allocations: 29.86 kB / 1.063 GB, free: 149.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.7739, allocations: 4 kB / 1.063 GB, free: 149.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001687/0.7741, allocations: 138.3 kB / 1.063 GB, free: 149.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001641/0.7743, allocations: 0.9608 MB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7743, allocations: 2.844 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.7743, allocations: 9.094 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.7744, allocations: 26.8 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.7744, allocations: 3.969 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/0.7745, allocations: 16.53 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.7745, allocations: 6.438 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.54e-06/0.7745, allocations: 2.875 kB / 1.064 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001223/0.7747, allocations: 105.1 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-06/0.7747, allocations: 2.844 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-06/0.7747, allocations: 4.844 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.948e-05/0.7747, allocations: 26.98 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.7748, allocations: 4.359 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.887e-05/0.7748, allocations: 13.66 kB / 1.064 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.7748, allocations: 12.08 kB / 1.064 GB, free: 148.6 MB / 0.698 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.083e-05/0.7749, allocations: 213.6 kB / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.775, allocations: 10.91 kB / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.775, allocations: 16.17 kB / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.775, allocations: 0 / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.775, allocations: 7.062 kB / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.775, allocations: 0 / 1.064 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.7753, allocations: 457.2 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.7753, allocations: 3.391 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.349e-05/0.7754, allocations: 7.578 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.7754, allocations: 3.188 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.7754, allocations: 0.5625 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.7754, allocations: 3.938 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.7754, allocations: 7.531 kB / 1.065 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.205e-05/0.7755, allocations: 118.5 kB / 1.065 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.7755, allocations: 93.89 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.7756, allocations: 3.531 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.255e-05/0.7756, allocations: 0.6094 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.7756, allocations: 0.75 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.7756, allocations: 2.938 kB / 1.065 GB, free: 147.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.87e-05/0.7757, allocations: 129.2 kB / 1.065 GB, free: 147.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7757, allocations: 3.938 kB / 1.065 GB, free: 147.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003337/0.7761, allocations: 60.09 kB / 1.065 GB, free: 147.7 MB / 0.698 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.000253/0.7763, allocations: 0.7943 MB / 1.066 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001558/0.7765, allocations: 101.6 kB / 1.066 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.7765, allocations: 0 / 1.066 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.819e-05/0.7765, allocations: 13.12 kB / 1.066 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.7767, allocations: 19.5 kB / 1.066 GB, free: 146.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.7779, allocations: 2.304 MB / 1.068 GB, free: 144.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.778, allocations: 0.7277 MB / 1.069 GB, free: 144.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.862e-05/0.7781, allocations: 33.88 kB / 1.069 GB, free: 144.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/0.7782, allocations: 32.95 kB / 1.069 GB, free: 144.1 MB / 0.698 GB Notification: Performance of SimCode: time 8.82e-07/0.7782, allocations: 3.938 kB / 1.069 GB, free: 144.1 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.7915, allocations: 2.12 MB / 1.071 GB, free: 144 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/0.7917, allocations: 195.1 kB / 1.071 GB, free: 143.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/2.319, allocations: 4.875 kB / 1.071 GB, free: 143.7 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)