Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.488/2.488, allocations: 284.9 MB / 292.4 MB, free: 10.54 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.001478/0.001478, allocations: 188.8 kB / 360.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001074/0.001073, allocations: 94.77 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.237e-05, allocations: 4 kB / 0.8509 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8714/0.8715, allocations: 115.2 MB / 0.9634 GB, free: 78.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2691/1.141, allocations: 159.1 MB / 1.119 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/1.141, allocations: 87.95 kB / 1.119 GB, free: 13.25 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0/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.03576/1.177, allocations: 9.449 MB / 1.128 GB, free: 3.789 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.263e-06/1.177, allocations: 0.875 kB / 1.128 GB, free: 3.789 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.294e-05/1.177, allocations: 0 / 1.128 GB, free: 3.789 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.0006447/1.178, allocations: 415.2 kB / 1.128 GB, free: 3.336 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.178, allocations: 9.031 kB / 1.128 GB, free: 3.328 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006046/1.178, allocations: 55.7 kB / 1.129 GB, free: 3.277 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/1.179, allocations: 218.8 kB / 1.129 GB, free: 3.023 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/1.179, allocations: 4 kB / 1.129 GB, free: 3.02 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.214e-05/1.179, allocations: 11.94 kB / 1.129 GB, free: 3.008 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000355/1.179, allocations: 124.2 kB / 1.129 GB, free: 2.887 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/1.179, allocations: 200.5 kB / 1.129 GB, free: 2.672 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/1.18, allocations: 0 / 1.129 GB, free: 2.672 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/1.18, allocations: 5.344 kB / 1.129 GB, free: 2.668 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-05/1.18, allocations: 19.02 kB / 1.129 GB, free: 2.652 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/1.181, allocations: 1.087 MB / 1.13 GB, free: 1.449 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 6.548e-05/1.181, allocations: 26.58 kB / 1.13 GB, free: 1.414 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.625e-05/1.181, allocations: 8.953 kB / 1.13 GB, free: 1.402 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/1.181, allocations: 7.938 kB / 1.13 GB, free: 1.395 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/1.181, allocations: 30.56 kB / 1.13 GB, free: 1.355 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 2.535e-06/1.181, allocations: 0 / 1.13 GB, free: 1.355 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001995/1.181, allocations: 61.53 kB / 1.13 GB, free: 1.289 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/1.182, allocations: 51.41 kB / 1.13 GB, free: 1.227 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/1.182, allocations: 130.3 kB / 1.13 GB, free: 1.09 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/1.182, allocations: 25.7 kB / 1.13 GB, free: 1.059 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/1.182, allocations: 151.2 kB / 1.131 GB, free: 0.9062 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/1.182, allocations: 11.89 kB / 1.131 GB, free: 0.8945 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/1.182, allocations: 0 / 1.131 GB, free: 0.8945 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001302/1.182, allocations: 320.7 kB / 1.131 GB, free: 0.5742 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.224e-05/1.182, allocations: 19.98 kB / 1.131 GB, free: 0.5547 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/1.182, allocations: 85.38 kB / 1.131 GB, free: 448 kB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.757e-05/1.182, allocations: 35.92 kB / 1.131 GB, free: 412 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.182, allocations: 0 / 1.131 GB, free: 412 kB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002929/1.183, allocations: 117.6 kB / 1.131 GB, free: 288 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004423/1.183, allocations: 0.961 MB / 1.132 GB, free: 15.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.183, allocations: 4 kB / 1.132 GB, free: 15.24 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/1.183, allocations: 7.953 kB / 1.132 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/1.183, allocations: 27.92 kB / 1.132 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/1.183, allocations: 4 kB / 1.132 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/1.184, allocations: 11.84 kB / 1.132 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/1.184, allocations: 4 kB / 1.132 GB, free: 15.19 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/1.184, allocations: 8 kB / 1.132 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002129/1.184, allocations: 83.84 kB / 1.132 GB, free: 15.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/1.184, allocations: 4 kB / 1.132 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.153e-06/1.184, allocations: 4 kB / 1.132 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/1.184, allocations: 23.94 kB / 1.132 GB, free: 15.07 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/1.184, allocations: 3.984 kB / 1.132 GB, free: 15.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.443e-05/1.184, allocations: 16.16 kB / 1.132 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/1.184, allocations: 11.66 kB / 1.132 GB, free: 15.04 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 9.68e-05/1.184, allocations: 116.7 kB / 1.132 GB, free: 14.92 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001242/1.184, allocations: 53.59 kB / 1.132 GB, free: 14.86 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/1.184, allocations: 7.906 kB / 1.132 GB, free: 14.85 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/1.184, allocations: 8.344 kB / 1.133 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/1.184, allocations: 0 / 1.133 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.184, allocations: 3.984 kB / 1.133 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/1.184, allocations: 3.625 kB / 1.133 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005098/1.185, allocations: 416.9 kB / 1.133 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/1.185, allocations: 0 / 1.133 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.362e-05/1.185, allocations: 4 kB / 1.133 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/1.185, allocations: 4 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/1.185, allocations: 3.984 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/1.185, allocations: 3.938 kB / 1.133 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/1.185, allocations: 4.047 kB / 1.133 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/1.185, allocations: 118.1 kB / 1.133 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/1.185, allocations: 89 kB / 1.133 GB, free: 14.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/1.185, allocations: 3.953 kB / 1.133 GB, free: 14.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.078e-05/1.185, allocations: 4 kB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/1.186, allocations: 4 kB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/1.186, allocations: 4 kB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.595e-05/1.186, allocations: 105.7 kB / 1.133 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4.01e-07/1.186, allocations: 0 / 1.133 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0005222/1.186, allocations: 63.69 kB / 1.133 GB, free: 13.92 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.0005636/1.187, allocations: 0.79 MB / 1.134 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002769/1.187, allocations: 92.91 kB / 1.134 GB, free: 13 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.187, allocations: 4.125 kB / 1.134 GB, free: 12.99 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.429e-05/1.187, allocations: 11.94 kB / 1.134 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/1.187, allocations: 17.86 kB / 1.134 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006947/1.188, allocations: 214.4 kB / 1.134 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/1.188, allocations: 0.7282 MB / 1.135 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001564/1.189, allocations: 24.52 kB / 1.135 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.15e-05/1.189, allocations: 35.42 kB / 1.135 GB, free: 11.89 MB / 0.7448 GB Notification: Performance of SimCode: time 9.72e-07/1.189, allocations: 0 / 1.135 GB, free: 11.89 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0367/1.225, allocations: 1.651 MB / 1.137 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003413/1.226, allocations: 150.5 kB / 1.137 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/3.669, allocations: 4 kB / 1.137 GB, free: 10.11 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)