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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.693/2.693, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.00112/0.00112, allocations: 183 kB / 498.1 MB, free: 5.73 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.657/1.657, allocations: 223.2 MB / 0.7949 GB, free: 17.87 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.001116/0.001117, allocations: 101 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003943, allocations: 6.531 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3793, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.239/0.6184, allocations: 182.5 MB / 1.401 GB, free: 11.45 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.6187, allocations: 99.94 kB / 1.401 GB, free: 11.35 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.05904/0.6777, allocations: 26.01 MB / 1.427 GB, free: 0.957 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6777, allocations: 0 / 1.427 GB, free: 0.957 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.647e-05/0.6778, allocations: 11.98 kB / 1.427 GB, free: 0.9453 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.001163/0.679, allocations: 0.6588 MB / 1.427 GB, free: 244 kB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.679, allocations: 8.031 kB / 1.427 GB, free: 236 kB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.6801, allocations: 167.5 kB / 1.427 GB, free: 68 kB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7251/1.405, allocations: 330.5 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/1.405, allocations: 31.64 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/1.405, allocations: 33.83 kB / 1.428 GB, free: 187.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009936/1.406, allocations: 0.5173 MB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/1.406, allocations: 0.7812 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/1.406, allocations: 18.97 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/1.407, allocations: 27.27 kB / 1.428 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006331/1.407, allocations: 388.1 kB / 1.429 GB, free: 187 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/1.41, allocations: 2.41 MB / 1.431 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006016/1.411, allocations: 263.9 kB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/1.411, allocations: 2.094 kB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/1.411, allocations: 36.55 kB / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 3.457e-06/1.411, allocations: 0 / 1.431 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.002278/1.413, allocations: 1.03 MB / 1.432 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/1.413, allocations: 58.84 kB / 1.432 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/1.413, allocations: 270.9 kB / 1.433 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/1.413, allocations: 25.7 kB / 1.433 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/1.413, allocations: 234.4 kB / 1.433 GB, free: 184.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.029e-05/1.414, allocations: 79.73 kB / 1.433 GB, free: 184.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/1.414, allocations: 5.5 kB / 1.433 GB, free: 184.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/1.414, allocations: 340 kB / 1.433 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/1.414, allocations: 106.4 kB / 1.433 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/1.414, allocations: 180.6 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/1.414, allocations: 139.1 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/1.414, allocations: 3.562 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007906/1.415, allocations: 431 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/1.415, allocations: 5.438 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/1.415, allocations: 5.719 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/1.416, allocations: 93.47 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/1.416, allocations: 64.98 kB / 1.434 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002746/1.419, allocations: 4.108 MB / 1.438 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/1.419, allocations: 13.84 kB / 1.438 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/1.419, allocations: 11.72 kB / 1.438 GB, free: 180.1 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.0002629/1.419, allocations: 182 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/1.419, allocations: 28.16 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.72e-05/1.419, allocations: 40.05 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/1.419, allocations: 5.156 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.419, allocations: 1.594 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/1.419, allocations: 5.219 kB / 1.439 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005763/1.42, allocations: 402.4 kB / 1.439 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/1.42, allocations: 0 / 1.439 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/1.42, allocations: 38.83 kB / 1.439 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/1.421, allocations: 89 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/1.421, allocations: 4.969 kB / 1.439 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/1.423, allocations: 4.102 MB / 1.443 GB, free: 176 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.423, allocations: 0 / 1.443 GB, free: 176 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008273/1.424, allocations: 0.557 MB / 1.444 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/1.424, allocations: 125.5 kB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/1.424, allocations: 5.906 kB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/1.424, allocations: 9.156 kB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/1.424, allocations: 20.34 kB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/1.424, allocations: 7.562 kB / 1.444 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000224/1.425, allocations: 206.3 kB / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.425, allocations: 0 / 1.444 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00056/1.425, allocations: 111.4 kB / 1.444 GB, free: 175.6 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.000168/1.425, allocations: 108.5 kB / 1.444 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008758/1.426, allocations: 0.5988 MB / 1.445 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.426, allocations: 3 kB / 1.445 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004617/1.427, allocations: 470.1 kB / 1.445 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/1.427, allocations: 71.34 kB / 1.445 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/1.428, allocations: 0.8597 MB / 1.446 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/1.429, allocations: 0.8387 MB / 1.447 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002299/1.429, allocations: 56.69 kB / 1.447 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.73e-05/1.429, allocations: 23.16 kB / 1.447 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of SimCode: time 1.553e-06/1.429, allocations: 4.719 kB / 1.447 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.01102/1.44, allocations: 4.106 MB / 1.451 GB, free: 173.5 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (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 & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches