Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.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.Lines.Examples.RCModel,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel",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.386/1.386, 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.001151/0.001151, allocations: 179.8 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008651/0.0008651, allocations: 90.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004234/0.0004233, allocations: 8.375 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2759, allocations: 106.3 MB / 0.9002 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7601/1.036, allocations: 164.6 MB / 1.061 GB, free: 155.2 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000366/1.036, allocations: 95.41 kB / 1.061 GB, free: 155.2 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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);. [/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/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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/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);. Notification: Performance of FrontEnd - DAE generated: time 0.04702/1.084, allocations: 17.92 MB / 1.079 GB, free: 150.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.403e-06/1.084, allocations: 0 / 1.079 GB, free: 150.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.745e-05/1.084, allocations: 9.281 kB / 1.079 GB, free: 150.5 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001154/1.085, allocations: 0.6613 MB / 1.079 GB, free: 149.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.085, allocations: 8.938 kB / 1.079 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/1.085, allocations: 87.95 kB / 1.079 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/1.086, allocations: 157.8 kB / 1.079 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005612/1.087, allocations: 332.2 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/1.087, allocations: 30.61 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/1.087, allocations: 33.53 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008072/1.088, allocations: 0.5181 MB / 1.08 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/1.088, allocations: 15.58 kB / 1.08 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/1.088, allocations: 16.53 kB / 1.08 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/1.088, allocations: 24.25 kB / 1.08 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005839/1.088, allocations: 382.5 kB / 1.081 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/1.091, allocations: 2.413 MB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005207/1.091, allocations: 261.6 kB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/1.091, allocations: 2.688 kB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/1.091, allocations: 43.98 kB / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=20): time 2.575e-06/1.091, allocations: 0 / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=23): time 0.002274/1.094, allocations: 1.019 MB / 1.084 GB, free: 146.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/1.094, allocations: 54.03 kB / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/1.094, allocations: 267.7 kB / 1.085 GB, free: 146.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/1.094, allocations: 30.86 kB / 1.085 GB, free: 146.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/1.094, allocations: 228 kB / 1.085 GB, free: 146.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/1.094, allocations: 88.27 kB / 1.085 GB, free: 146.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/1.094, allocations: 7.281 kB / 1.085 GB, free: 146.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.196e-05/1.094, allocations: 336.4 kB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/1.095, allocations: 100.7 kB / 1.085 GB, free: 145.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/1.095, allocations: 192.4 kB / 1.086 GB, free: 145.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/1.095, allocations: 133.8 kB / 1.086 GB, free: 145.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.095, allocations: 0.6875 kB / 1.086 GB, free: 145.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001117/1.096, allocations: 436.2 kB / 1.086 GB, free: 145.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/1.096, allocations: 7.562 kB / 1.086 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/1.096, allocations: 2 kB / 1.086 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/1.097, allocations: 95.62 kB / 1.086 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/1.097, allocations: 60.16 kB / 1.086 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/1.1, allocations: 4.114 MB / 1.09 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/1.1, allocations: 7.781 kB / 1.09 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/1.1, allocations: 19.31 kB / 1.09 GB, free: 141.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002717/1.1, allocations: 181.3 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.521e-05/1.1, allocations: 31.28 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.711e-05/1.101, allocations: 46.05 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/1.101, allocations: 3.969 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.101, allocations: 3.938 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/1.101, allocations: 7.984 kB / 1.091 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/1.101, allocations: 395.7 kB / 1.091 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/1.101, allocations: 3.984 kB / 1.091 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/1.101, allocations: 30.14 kB / 1.091 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002798/1.101, allocations: 89.38 kB / 1.091 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/1.102, allocations: 4 kB / 1.091 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/1.104, allocations: 4.105 MB / 1.095 GB, free: 136.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.104, allocations: 0 / 1.095 GB, free: 136.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006854/1.104, allocations: 0.5519 MB / 1.096 GB, free: 136.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/1.104, allocations: 128.3 kB / 1.096 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/1.104, allocations: 3.969 kB / 1.096 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/1.105, allocations: 11.81 kB / 1.096 GB, free: 136.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/1.105, allocations: 31.77 kB / 1.096 GB, free: 136.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/1.105, allocations: 3.906 kB / 1.096 GB, free: 136.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002001/1.105, allocations: 205.6 kB / 1.096 GB, free: 136 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.2e-07/1.105, allocations: 1.25 kB / 1.096 GB, free: 136 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005145/1.105, allocations: 98.16 kB / 1.096 GB, free: 135.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008431/1.106, allocations: 1.104 MB / 1.097 GB, free: 134.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007138/1.107, allocations: 0.6017 MB / 1.098 GB, free: 134.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.107, allocations: 0 / 1.098 GB, free: 134.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003558/1.107, allocations: 472.1 kB / 1.098 GB, free: 133.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/1.108, allocations: 70.8 kB / 1.098 GB, free: 133.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/1.111, allocations: 3.713 MB / 1.102 GB, free: 129.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/1.111, allocations: 0.8419 MB / 1.103 GB, free: 128.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000227/1.111, allocations: 58.92 kB / 1.103 GB, free: 128.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/1.111, allocations: 111.4 kB / 1.103 GB, free: 128.7 MB / 0.698 GB Notification: Performance of SimCode: time 5.91e-07/1.111, allocations: 0 / 1.103 GB, free: 128.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/1.129, allocations: 7.151 MB / 1.11 GB, free: 121.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/1.129, allocations: 204.7 kB / 1.11 GB, free: 121.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/3.151, allocations: 0 / 1.11 GB, free: 121.5 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)