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.376/2.376, allocations: 390.3 MB / 402.8 MB, free: 6.652 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.001449/0.001449, allocations: 176.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.788/1.788, allocations: 221.3 MB / 0.7915 GB, free: 5.355 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.001077/0.001077, allocations: 91.89 kB / 0.9317 GB, free: 5.68 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.589e-05/4.608e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2978, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.094/1.392, allocations: 183.3 MB / 1.398 GB, free: 5.039 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003592/1.392, allocations: 88.08 kB / 1.398 GB, free: 4.996 MB / 0.8542 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.05731/1.45, allocations: 25.82 MB / 1.423 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.303e-06/1.45, allocations: 0 / 1.423 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.572e-05/1.45, allocations: 8 kB / 1.423 GB, free: 15.41 MB / 0.8855 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.001016/1.451, allocations: 0.6201 MB / 1.424 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/1.451, allocations: 8.031 kB / 1.424 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.365e-05/1.451, allocations: 79.16 kB / 1.424 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/1.452, allocations: 167.2 kB / 1.424 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/1.453, allocations: 340.6 kB / 1.424 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/1.453, allocations: 23.34 kB / 1.424 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/1.453, allocations: 38.98 kB / 1.424 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/1.453, allocations: 0.5132 MB / 1.425 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/1.453, allocations: 0 / 1.425 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.942e-05/1.453, allocations: 10.94 kB / 1.425 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/1.454, allocations: 28.7 kB / 1.425 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000559/1.454, allocations: 388.3 kB / 1.425 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/1.457, allocations: 2.412 MB / 1.428 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004963/1.457, allocations: 253.5 kB / 1.428 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/1.457, allocations: 114 kB / 1.428 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/1.457, allocations: 4 kB / 1.428 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/1.457, allocations: 37.31 kB / 1.428 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=20): time 1.373e-06/1.457, allocations: 0 / 1.428 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23): time 0.001696/1.459, allocations: 0.8513 MB / 1.429 GB, free: 10 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/1.459, allocations: 55.41 kB / 1.429 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/1.459, allocations: 260.3 kB / 1.429 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/1.459, allocations: 33.02 kB / 1.429 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/1.46, allocations: 233.2 kB / 1.429 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/1.46, allocations: 85.39 kB / 1.429 GB, free: 9.422 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/1.46, allocations: 3.688 kB / 1.429 GB, free: 9.422 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001326/1.46, allocations: 337.6 kB / 1.43 GB, free: 9.094 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/1.46, allocations: 99.88 kB / 1.43 GB, free: 9.027 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/1.46, allocations: 191.9 kB / 1.43 GB, free: 8.844 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/1.46, allocations: 135.1 kB / 1.43 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/1.46, allocations: 0 / 1.43 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006833/1.461, allocations: 429.5 kB / 1.431 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/1.461, allocations: 11.98 kB / 1.431 GB, free: 8.398 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/1.461, allocations: 4 kB / 1.431 GB, free: 8.395 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003313/1.461, allocations: 92.23 kB / 1.431 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/1.462, allocations: 62.97 kB / 1.431 GB, free: 8.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/1.465, allocations: 4.069 MB / 1.435 GB, free: 3.984 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/1.465, allocations: 10.97 kB / 1.435 GB, free: 3.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/1.465, allocations: 12 kB / 1.435 GB, free: 3.969 MB / 0.8855 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 () * 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.0001047/1.465, allocations: 127.9 kB / 1.435 GB, free: 3.848 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.724e-05/1.465, allocations: 31.62 kB / 1.435 GB, free: 3.816 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.501e-05/1.465, allocations: 42.92 kB / 1.435 GB, free: 3.793 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/1.465, allocations: 4 kB / 1.435 GB, free: 3.789 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.465, allocations: 7.922 kB / 1.435 GB, free: 3.781 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/1.465, allocations: 0 / 1.435 GB, free: 3.781 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/1.466, allocations: 396.7 kB / 1.435 GB, free: 3.422 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.466, allocations: 4 kB / 1.435 GB, free: 3.418 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/1.466, allocations: 31.98 kB / 1.435 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002737/1.466, allocations: 92.44 kB / 1.436 GB, free: 3.301 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/1.466, allocations: 3.938 kB / 1.436 GB, free: 3.301 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/1.469, allocations: 4.06 MB / 1.439 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.469, allocations: 0 / 1.439 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007679/1.47, allocations: 0.5504 MB / 1.44 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/1.47, allocations: 124.8 kB / 1.44 GB, free: 14.34 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/1.47, allocations: 8 kB / 1.44 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/1.47, allocations: 15.94 kB / 1.44 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/1.47, allocations: 19.97 kB / 1.44 GB, free: 14.29 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/1.47, allocations: 8 kB / 1.44 GB, free: 14.29 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002094/1.47, allocations: 206.2 kB / 1.44 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.01e-07/1.47, allocations: 0 / 1.44 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004407/1.471, allocations: 100 kB / 1.44 GB, free: 13.99 MB / 0.9011 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 () * 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.001069/1.472, allocations: 1.094 MB / 1.442 GB, free: 12.86 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007695/1.473, allocations: 0.6015 MB / 1.442 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.473, allocations: 0 / 1.442 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004503/1.473, allocations: 456.4 kB / 1.443 GB, free: 11.73 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/1.474, allocations: 69.55 kB / 1.443 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/1.475, allocations: 0.5961 MB / 1.443 GB, free: 11.03 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/1.475, allocations: 0.838 MB / 1.444 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002054/1.475, allocations: 66.86 kB / 1.444 GB, free: 10.1 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/1.476, allocations: 111.4 kB / 1.444 GB, free: 9.992 MB / 0.9011 GB Notification: Performance of SimCode: time 2.51e-07/1.476, allocations: 3.938 kB / 1.444 GB, free: 9.988 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/1.496, allocations: 7.129 MB / 1.451 GB, free: 3.051 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/1.496, allocations: 172.2 kB / 1.451 GB, free: 2.828 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.255/3.751, allocations: 0 / 1.451 GB, free: 2.828 MB / 0.9011 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