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.45/1.45, allocations: 249.5 MB / 257 MB, free: 6.965 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.00104/0.00104, allocations: 184.9 kB / 316.3 MB, free: 3.219 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.667/1.667, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0008469/0.0008468, allocations: 95.28 kB / 0.6714 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.072e-05/2.074e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2369, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.767/1.004, allocations: 153.9 MB / 1.036 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/1.004, allocations: 91.62 kB / 1.036 GB, free: 1.711 MB / 0.6511 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.02057/1.025, allocations: 9.436 MB / 1.045 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.302e-06/1.025, allocations: 0 / 1.045 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.639e-05/1.025, allocations: 0 / 1.045 GB, free: 10.11 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.0006045/1.026, allocations: 424.5 kB / 1.045 GB, free: 9.656 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/1.026, allocations: 8.031 kB / 1.045 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004471/1.026, allocations: 56.14 kB / 1.045 GB, free: 9.594 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/1.026, allocations: 221.3 kB / 1.046 GB, free: 9.348 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/1.026, allocations: 7.938 kB / 1.046 GB, free: 9.34 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/1.026, allocations: 11.98 kB / 1.046 GB, free: 9.328 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000239/1.027, allocations: 120.7 kB / 1.046 GB, free: 9.25 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/1.027, allocations: 205.2 kB / 1.046 GB, free: 9.07 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/1.027, allocations: 3.938 kB / 1.046 GB, free: 9.066 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/1.027, allocations: 0 / 1.046 GB, free: 9.066 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.994e-05/1.027, allocations: 15.2 kB / 1.046 GB, free: 9.055 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/1.028, allocations: 1.089 MB / 1.047 GB, free: 7.918 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 5.479e-05/1.028, allocations: 25.89 kB / 1.047 GB, free: 7.887 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.624e-05/1.028, allocations: 20.12 kB / 1.047 GB, free: 7.867 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/1.028, allocations: 3.953 kB / 1.047 GB, free: 7.863 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/1.028, allocations: 30.56 kB / 1.047 GB, free: 7.824 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/1.028, allocations: 0 / 1.047 GB, free: 7.824 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001737/1.029, allocations: 56.91 kB / 1.047 GB, free: 7.766 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/1.029, allocations: 51.41 kB / 1.047 GB, free: 7.703 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/1.029, allocations: 137.2 kB / 1.047 GB, free: 7.574 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/1.029, allocations: 25.7 kB / 1.047 GB, free: 7.543 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/1.029, allocations: 159.9 kB / 1.047 GB, free: 7.395 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.446e-06/1.029, allocations: 3.906 kB / 1.047 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-06/1.029, allocations: 0 / 1.047 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001379/1.029, allocations: 322 kB / 1.048 GB, free: 7.07 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.028e-05/1.029, allocations: 14.38 kB / 1.048 GB, free: 7.062 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.452e-05/1.029, allocations: 86.19 kB / 1.048 GB, free: 6.953 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.025e-05/1.029, allocations: 36.67 kB / 1.048 GB, free: 6.926 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/1.029, allocations: 0 / 1.048 GB, free: 6.926 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001783/1.029, allocations: 115.7 kB / 1.048 GB, free: 6.816 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003918/1.03, allocations: 0.9603 MB / 1.049 GB, free: 5.801 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/1.03, allocations: 4 kB / 1.049 GB, free: 5.797 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/1.03, allocations: 11.95 kB / 1.049 GB, free: 5.785 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/1.03, allocations: 31.55 kB / 1.049 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/1.03, allocations: 4 kB / 1.049 GB, free: 5.754 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.23e-05/1.03, allocations: 11.84 kB / 1.049 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/1.03, allocations: 4 kB / 1.049 GB, free: 5.738 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/1.03, allocations: 4 kB / 1.049 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001213/1.03, allocations: 83.3 kB / 1.049 GB, free: 5.664 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/1.03, allocations: 4 kB / 1.049 GB, free: 5.66 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-06/1.03, allocations: 3.938 kB / 1.049 GB, free: 5.656 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.17e-05/1.03, allocations: 27.92 kB / 1.049 GB, free: 5.629 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/1.03, allocations: 4 kB / 1.049 GB, free: 5.625 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.502e-05/1.03, allocations: 11.94 kB / 1.049 GB, free: 5.613 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/1.03, allocations: 8 kB / 1.049 GB, free: 5.605 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 7.135e-05/1.03, allocations: 112.4 kB / 1.049 GB, free: 5.492 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.727e-05/1.031, allocations: 57.64 kB / 1.049 GB, free: 5.434 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/1.031, allocations: 11.94 kB / 1.049 GB, free: 5.422 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/1.031, allocations: 16.14 kB / 1.049 GB, free: 5.406 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/1.031, allocations: 0 / 1.049 GB, free: 5.406 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/1.031, allocations: 0 / 1.049 GB, free: 5.406 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/1.031, allocations: 0 / 1.049 GB, free: 5.406 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/1.031, allocations: 410.8 kB / 1.05 GB, free: 4.973 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.031, allocations: 8.078 kB / 1.05 GB, free: 4.965 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.504e-05/1.031, allocations: 4 kB / 1.05 GB, free: 4.961 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/1.031, allocations: 0 / 1.05 GB, free: 4.961 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/1.031, allocations: 4 kB / 1.05 GB, free: 4.957 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/1.031, allocations: 3.938 kB / 1.05 GB, free: 4.953 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.031, allocations: 3.953 kB / 1.05 GB, free: 4.949 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/1.031, allocations: 117 kB / 1.05 GB, free: 4.809 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/1.031, allocations: 89 kB / 1.05 GB, free: 4.703 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/1.031, allocations: 3.953 kB / 1.05 GB, free: 4.699 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.923e-05/1.031, allocations: 0 / 1.05 GB, free: 4.699 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/1.031, allocations: 7.812 kB / 1.05 GB, free: 4.695 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/1.031, allocations: 0 / 1.05 GB, free: 4.695 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 6.769e-05/1.031, allocations: 102.1 kB / 1.05 GB, free: 4.602 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.6e-07/1.031, allocations: 7.938 kB / 1.05 GB, free: 4.594 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003302/1.032, allocations: 55.78 kB / 1.05 GB, free: 4.539 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.0004572/1.032, allocations: 0.7897 MB / 1.051 GB, free: 3.715 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001629/1.032, allocations: 91.78 kB / 1.051 GB, free: 3.641 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.032, allocations: 0 / 1.051 GB, free: 3.641 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 1.797e-05/1.032, allocations: 16.75 kB / 1.051 GB, free: 3.629 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/1.033, allocations: 15.8 kB / 1.051 GB, free: 3.617 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/1.033, allocations: 219.3 kB / 1.051 GB, free: 3.375 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/1.034, allocations: 0.7324 MB / 1.052 GB, free: 2.625 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 8.948e-05/1.034, allocations: 24.53 kB / 1.052 GB, free: 2.602 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/1.034, allocations: 34.67 kB / 1.052 GB, free: 2.586 MB / 0.6667 GB Notification: Performance of SimCode: time 2.7e-07/1.034, allocations: 0 / 1.052 GB, free: 2.586 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/1.052, allocations: 1.656 MB / 1.054 GB, free: 0.9492 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/1.053, allocations: 156.9 kB / 1.054 GB, free: 0.7578 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/2.586, allocations: 0 / 1.054 GB, free: 0.7578 MB / 0.6667 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)