Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 177.1 kB / 498.1 MB, free: 5.727 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 223.1 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 98.34 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.000386, allocations: 13.62 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.261, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2008/0.4619, allocations: 182.5 MB / 1.401 GB, free: 11.4 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.4623, allocations: 91.95 kB / 1.401 GB, free: 11.31 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 9.1.1-maint.9.1.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.06188/0.5242, allocations: 26.02 MB / 1.427 GB, free: 0.9102 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.093e-06/0.5242, allocations: 0 / 1.427 GB, free: 0.9102 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.295e-05/0.5242, allocations: 11.94 kB / 1.427 GB, free: 0.8984 MB / 0.9167 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.001352/0.5256, allocations: 0.6627 MB / 1.427 GB, free: 192 kB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.5256, allocations: 12.02 kB / 1.427 GB, free: 180 kB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.5258, allocations: 74.88 kB / 1.427 GB, free: 96 kB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5491/1.075, allocations: 152.2 kB / 1.428 GB, free: 187.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007021/1.076, allocations: 343 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/1.076, allocations: 26.23 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.644e-05/1.076, allocations: 32.27 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/1.077, allocations: 0.5246 MB / 1.428 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/1.077, allocations: 2.984 kB / 1.428 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/1.077, allocations: 12.11 kB / 1.428 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.232e-05/1.077, allocations: 33.69 kB / 1.429 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/1.077, allocations: 382.4 kB / 1.429 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/1.08, allocations: 2.413 MB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/1.08, allocations: 258.6 kB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/1.08, allocations: 4.594 kB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/1.08, allocations: 40.91 kB / 1.432 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 2.184e-06/1.08, allocations: 0 / 1.432 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.001978/1.082, allocations: 1.028 MB / 1.433 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/1.082, allocations: 57.75 kB / 1.433 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/1.082, allocations: 263.5 kB / 1.433 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/1.082, allocations: 31.14 kB / 1.433 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/1.083, allocations: 229.3 kB / 1.433 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/1.083, allocations: 81.66 kB / 1.433 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.499e-05/1.083, allocations: 7.531 kB / 1.433 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.079e-05/1.083, allocations: 337.9 kB / 1.433 GB, free: 184 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/1.083, allocations: 101.7 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/1.083, allocations: 189.8 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/1.083, allocations: 136.1 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.083, allocations: 0.6094 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007689/1.084, allocations: 433.3 kB / 1.434 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/1.084, allocations: 5.562 kB / 1.434 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/1.084, allocations: 4.625 kB / 1.434 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/1.085, allocations: 95.08 kB / 1.434 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/1.085, allocations: 64.38 kB / 1.434 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/1.087, allocations: 4.113 MB / 1.438 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/1.088, allocations: 13.59 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/1.088, allocations: 11.91 kB / 1.439 GB, free: 180 MB / 0.9167 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.0002237/1.088, allocations: 176.3 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/1.088, allocations: 34.88 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.029e-05/1.088, allocations: 39.7 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/1.088, allocations: 7.453 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/1.088, allocations: 1.094 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/1.088, allocations: 2.328 kB / 1.439 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004983/1.089, allocations: 397.1 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/1.089, allocations: 0 / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/1.089, allocations: 38.64 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/1.089, allocations: 87.45 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/1.089, allocations: 5.703 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/1.091, allocations: 4.106 MB / 1.443 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/1.091, allocations: 0 / 1.443 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008619/1.092, allocations: 0.548 MB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/1.092, allocations: 129.6 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/1.092, allocations: 4.156 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/1.093, allocations: 15.02 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/1.093, allocations: 26.69 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/1.093, allocations: 4.031 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002156/1.093, allocations: 208.5 kB / 1.444 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.71e-07/1.093, allocations: 0 / 1.444 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005322/1.093, allocations: 99.5 kB / 1.444 GB, free: 175.5 MB / 0.9167 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.000997/1.094, allocations: 1.107 MB / 1.445 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0007388/1.095, allocations: 0.5985 MB / 1.446 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.095, allocations: 1.031 kB / 1.446 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004006/1.096, allocations: 469 kB / 1.446 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/1.096, allocations: 72.17 kB / 1.446 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/1.099, allocations: 3.725 MB / 1.45 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/1.099, allocations: 0.8388 MB / 1.451 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002304/1.1, allocations: 58.52 kB / 1.451 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/1.1, allocations: 108.8 kB / 1.451 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of SimCode: time 1.162e-06/1.1, allocations: 1.281 kB / 1.451 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/1.123, allocations: 7.125 MB / 1.458 GB, free: 170.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/1.123, allocations: 198.7 kB / 1.458 GB, free: 170.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/3.104, allocations: 7.172 kB / 1.458 GB, free: 170.3 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat