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.504/1.504, allocations: 249.3 MB / 261.8 MB, free: 5.84 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.001083/0.001082, allocations: 178.6 kB / 321.3 MB, free: 14.63 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.833/1.833, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.0009657/0.0009662, allocations: 88.31 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.636e-05/3.638e-05, allocations: 0 / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2335, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8766/1.11, allocations: 153.6 MB / 1.042 GB, free: 15.07 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/1.11, allocations: 86 kB / 1.042 GB, free: 15.03 MB / 0.6667 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.02214/1.133, allocations: 9.475 MB / 1.051 GB, free: 7.332 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.174e-06/1.133, allocations: 4 kB / 1.051 GB, free: 7.328 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.71e-05/1.133, allocations: 8 kB / 1.051 GB, free: 7.32 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.0006032/1.133, allocations: 424.2 kB / 1.052 GB, free: 6.867 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/1.133, allocations: 12.03 kB / 1.052 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.029e-05/1.133, allocations: 44.61 kB / 1.052 GB, free: 6.809 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004773/1.134, allocations: 52.03 kB / 1.052 GB, free: 6.762 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/1.134, allocations: 213.4 kB / 1.052 GB, free: 6.52 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/1.134, allocations: 18.34 kB / 1.052 GB, free: 6.508 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/1.134, allocations: 10.88 kB / 1.052 GB, free: 6.5 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/1.135, allocations: 219.1 kB / 1.052 GB, free: 6.316 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/1.135, allocations: 3.938 kB / 1.052 GB, free: 6.312 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/1.135, allocations: 3.312 kB / 1.052 GB, free: 6.312 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/1.135, allocations: 19.14 kB / 1.052 GB, free: 6.297 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/1.135, allocations: 139.2 kB / 1.052 GB, free: 6.203 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/1.136, allocations: 1.141 MB / 1.053 GB, free: 5.016 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 5.88e-05/1.136, allocations: 28.2 kB / 1.053 GB, free: 4.98 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.906e-05/1.136, allocations: 12.17 kB / 1.053 GB, free: 4.969 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/1.136, allocations: 4 kB / 1.054 GB, free: 4.965 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/1.136, allocations: 38.5 kB / 1.054 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.904e-06/1.136, allocations: 0 / 1.054 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001815/1.137, allocations: 56.31 kB / 1.054 GB, free: 4.863 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/1.137, allocations: 55.39 kB / 1.054 GB, free: 4.797 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/1.137, allocations: 165.8 kB / 1.054 GB, free: 4.645 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/1.137, allocations: 25.7 kB / 1.054 GB, free: 4.613 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/1.137, allocations: 145.7 kB / 1.054 GB, free: 4.477 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/1.137, allocations: 15.25 kB / 1.054 GB, free: 4.465 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-06/1.137, allocations: 0 / 1.054 GB, free: 4.465 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.137, allocations: 326.6 kB / 1.054 GB, free: 4.141 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.809e-05/1.137, allocations: 18 kB / 1.054 GB, free: 4.129 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-05/1.137, allocations: 89 kB / 1.054 GB, free: 4.02 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.095e-05/1.137, allocations: 34.92 kB / 1.054 GB, free: 3.992 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.137, allocations: 0 / 1.054 GB, free: 3.992 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001949/1.137, allocations: 143.9 kB / 1.055 GB, free: 3.863 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004432/1.138, allocations: 0.958 MB / 1.056 GB, free: 2.848 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/1.138, allocations: 11.92 kB / 1.056 GB, free: 2.836 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/1.138, allocations: 4 kB / 1.056 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/1.138, allocations: 23.94 kB / 1.056 GB, free: 2.809 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/1.138, allocations: 4 kB / 1.056 GB, free: 2.805 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.693e-05/1.138, allocations: 23.52 kB / 1.056 GB, free: 2.785 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/1.138, allocations: 4 kB / 1.056 GB, free: 2.781 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/1.138, allocations: 4 kB / 1.056 GB, free: 2.777 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001469/1.138, allocations: 92.22 kB / 1.056 GB, free: 2.703 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-06/1.138, allocations: 4.312 kB / 1.056 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.779e-06/1.138, allocations: 4 kB / 1.056 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.623e-05/1.138, allocations: 27.92 kB / 1.056 GB, free: 2.668 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/1.138, allocations: 8 kB / 1.056 GB, free: 2.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.972e-05/1.139, allocations: 15.28 kB / 1.056 GB, free: 2.648 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/1.139, allocations: 8 kB / 1.056 GB, free: 2.641 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.436e-05/1.139, allocations: 113.4 kB / 1.056 GB, free: 2.527 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/1.139, allocations: 7.906 kB / 1.056 GB, free: 2.52 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/1.139, allocations: 16.3 kB / 1.056 GB, free: 2.508 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/1.139, allocations: 8 kB / 1.056 GB, free: 2.5 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.139, allocations: 0 / 1.056 GB, free: 2.5 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/1.139, allocations: 0 / 1.056 GB, free: 2.5 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/1.139, allocations: 459.9 kB / 1.056 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/1.139, allocations: 0 / 1.056 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.609e-05/1.139, allocations: 4 kB / 1.056 GB, free: 2.012 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/1.139, allocations: 4.094 kB / 1.056 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/1.139, allocations: 4 kB / 1.056 GB, free: 2.004 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/1.139, allocations: 0 / 1.056 GB, free: 2.004 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.139, allocations: 7.938 kB / 1.056 GB, free: 1.996 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/1.139, allocations: 126.2 kB / 1.056 GB, free: 1.848 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/1.139, allocations: 92.95 kB / 1.057 GB, free: 1.738 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/1.139, allocations: 6.5 kB / 1.057 GB, free: 1.734 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.193e-05/1.139, allocations: 0 / 1.057 GB, free: 1.734 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/1.14, allocations: 0 / 1.057 GB, free: 1.734 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/1.14, allocations: 7.938 kB / 1.057 GB, free: 1.727 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001008/1.14, allocations: 128.7 kB / 1.057 GB, free: 1.617 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.7e-07/1.14, allocations: 0 / 1.057 GB, free: 1.617 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003531/1.14, allocations: 59.25 kB / 1.057 GB, free: 1.562 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.0004665/1.14, allocations: 0.7986 MB / 1.058 GB, free: 0.7305 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002019/1.141, allocations: 113.4 kB / 1.058 GB, free: 0.6367 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.141, allocations: 0 / 1.058 GB, free: 0.6367 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.287e-05/1.141, allocations: 12.38 kB / 1.058 GB, free: 0.6289 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/1.141, allocations: 19.62 kB / 1.058 GB, free: 0.6172 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005643/1.142, allocations: 232.1 kB / 1.058 GB, free: 376 kB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/1.142, allocations: 0.728 MB / 1.059 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001075/1.142, allocations: 32.73 kB / 1.059 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/1.142, allocations: 33.8 kB / 1.059 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of SimCode: time 8.01e-07/1.142, allocations: 0 / 1.059 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/1.155, allocations: 2.191 MB / 1.061 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/1.156, allocations: 177 kB / 1.061 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/2.826, allocations: 0 / 1.061 GB, free: 13.28 MB / 0.6823 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)