Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.358/2.358, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001498/0.001498, allocations: 184 kB / 0.4901 GB, free: 2.207 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.639/1.639, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001102/0.001102, allocations: 88.28 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000381/0.0003811, allocations: 12.28 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3219, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2351/0.557, allocations: 183.3 MB / 1.408 GB, free: 2.082 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.5575, allocations: 95.94 kB / 1.408 GB, free: 1.988 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.653/1.21, allocations: 25.99 MB / 1.434 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.593e-06/1.211, allocations: 1.031 kB / 1.434 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.024e-05/1.211, allocations: 12.66 kB / 1.434 GB, free: 184.6 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.001146/1.212, allocations: 0.6651 MB / 1.434 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/1.212, allocations: 11.47 kB / 1.434 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/1.212, allocations: 79.47 kB / 1.435 GB, free: 184 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/1.213, allocations: 163.1 kB / 1.435 GB, free: 184 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/1.214, allocations: 340.1 kB / 1.435 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/1.214, allocations: 25.67 kB / 1.435 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/1.214, allocations: 33.84 kB / 1.435 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008579/1.214, allocations: 0.5197 MB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/1.215, allocations: 1.219 kB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.639e-05/1.215, allocations: 16.66 kB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-05/1.215, allocations: 33.42 kB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006129/1.215, allocations: 382.4 kB / 1.436 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/1.218, allocations: 2.414 MB / 1.438 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005161/1.218, allocations: 259.9 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/1.218, allocations: 4.875 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/1.218, allocations: 38.75 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 2.064e-06/1.218, allocations: 2.625 kB / 1.439 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.001929/1.22, allocations: 1.028 MB / 1.44 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/1.22, allocations: 55.53 kB / 1.44 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/1.22, allocations: 264.6 kB / 1.44 GB, free: 181.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/1.22, allocations: 30.67 kB / 1.44 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/1.221, allocations: 233.7 kB / 1.44 GB, free: 181 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/1.221, allocations: 77.41 kB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.592e-05/1.221, allocations: 12.91 kB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.859e-05/1.221, allocations: 336.8 kB / 1.441 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/1.221, allocations: 102.1 kB / 1.441 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/1.221, allocations: 190.5 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/1.221, allocations: 130.1 kB / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/1.221, allocations: 0 / 1.441 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007155/1.222, allocations: 437.3 kB / 1.441 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.222, allocations: 6.672 kB / 1.441 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/1.222, allocations: 3.344 kB / 1.441 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/1.222, allocations: 97.03 kB / 1.442 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/1.223, allocations: 64.36 kB / 1.442 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/1.225, allocations: 4.113 MB / 1.446 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/1.225, allocations: 11.88 kB / 1.446 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/1.225, allocations: 13.09 kB / 1.446 GB, free: 176.6 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.0002043/1.226, allocations: 183.1 kB / 1.446 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.652e-05/1.226, allocations: 26.84 kB / 1.446 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/1.226, allocations: 38.75 kB / 1.446 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/1.226, allocations: 6.609 kB / 1.446 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/1.226, allocations: 1 kB / 1.446 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.226, allocations: 2.641 kB / 1.446 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005073/1.226, allocations: 396.5 kB / 1.446 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/1.226, allocations: 3.062 kB / 1.446 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/1.227, allocations: 34.2 kB / 1.446 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003026/1.227, allocations: 92.94 kB / 1.446 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/1.227, allocations: 5.969 kB / 1.446 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/1.229, allocations: 4.113 MB / 1.45 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.229, allocations: 2.156 kB / 1.45 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008002/1.23, allocations: 0.5477 MB / 1.451 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/1.23, allocations: 127.3 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/1.23, allocations: 6.094 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/1.23, allocations: 16.22 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/1.231, allocations: 23.5 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/1.231, allocations: 4.562 kB / 1.451 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000223/1.231, allocations: 208 kB / 1.451 GB, free: 172 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.3e-07/1.231, allocations: 0 / 1.451 GB, free: 172 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005283/1.231, allocations: 101.7 kB / 1.451 GB, free: 172 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.0009891/1.232, allocations: 1.099 MB / 1.452 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0007889/1.233, allocations: 0.6078 MB / 1.453 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.233, allocations: 2.469 kB / 1.453 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004412/1.234, allocations: 465.4 kB / 1.454 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/1.234, allocations: 74.42 kB / 1.454 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/1.237, allocations: 3.717 MB / 1.457 GB, free: 168.1 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/1.237, allocations: 0.8393 MB / 1.458 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002405/1.238, allocations: 56.12 kB / 1.458 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/1.238, allocations: 110.7 kB / 1.458 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of SimCode: time 1.342e-06/1.238, allocations: 0 / 1.458 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/1.261, allocations: 7.141 MB / 1.465 GB, free: 166.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001311/1.261, allocations: 197.6 kB / 1.465 GB, free: 166.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/3.239, allocations: 5.062 kB / 1.465 GB, free: 166.7 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat