Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.607/1.607, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009251/0.0009251, allocations: 90.75 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.672e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.0987, allocations: 56.31 MB / 474.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3677/0.4665, allocations: 102.6 MB / 0.5631 GB, free: 276 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4668, allocations: 88.27 kB / 0.5632 GB, free: 232 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06455/0.5313, allocations: 21.99 MB / 0.5847 GB, free: 13.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5314, allocations: 0 / 0.5847 GB, free: 13.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.788e-05/0.5314, allocations: 24 kB / 0.5847 GB, free: 13.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.00218/0.5336, allocations: 1.177 MB / 0.5859 GB, free: 12.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.5337, allocations: 8.031 kB / 0.5859 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008433/0.5345, allocations: 158.6 kB / 0.586 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.5378, allocations: 1.189 MB / 0.5872 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.588e-05/0.5379, allocations: 80.75 kB / 0.5873 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.5381, allocations: 90.23 kB / 0.5874 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.5402, allocations: 1.252 MB / 0.5886 GB, free: 9.812 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/0.5403, allocations: 7.938 kB / 0.5886 GB, free: 9.805 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.715e-05/0.5404, allocations: 35.3 kB / 0.5886 GB, free: 9.793 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.532e-05/0.5405, allocations: 57.23 kB / 0.5887 GB, free: 9.738 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.5423, allocations: 1.109 MB / 0.5898 GB, free: 8.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006519/0.5489, allocations: 4.591 MB / 0.5942 GB, free: 5.016 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.5501, allocations: 0.808 MB / 0.595 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008003/0.551, allocations: 0.6476 MB / 0.5957 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-05/0.5511, allocations: 13.7 kB / 0.5957 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/0.5522, allocations: 0.8928 MB / 0.5965 GB, free: 3.312 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 4.329e-06/0.5522, allocations: 0 / 0.5965 GB, free: 3.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=127): time 0.0048/0.557, allocations: 3.065 MB / 0.5995 GB, free: 0.832 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.5572, allocations: 249.8 kB / 0.5998 GB, free: 0.543 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004937/0.5577, allocations: 430.9 kB / 0.6002 GB, free: 204 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.177e-05/0.5578, allocations: 49.08 kB / 0.6002 GB, free: 164 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.5581, allocations: 400.4 kB / 0.6006 GB, free: 15.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.5584, allocations: 377 kB / 0.601 GB, free: 15.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.877e-05/0.5585, allocations: 25.25 kB / 0.601 GB, free: 15.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.5587, allocations: 400.9 kB / 0.6014 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007591/0.5595, allocations: 0.5223 MB / 0.6019 GB, free: 14.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009033/0.5604, allocations: 0.7573 MB / 0.6026 GB, free: 14.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009356/0.5613, allocations: 0.6616 MB / 0.6033 GB, free: 13.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.5614, allocations: 4 kB / 0.6033 GB, free: 13.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003807/0.5652, allocations: 2.048 MB / 0.6053 GB, free: 12.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.5653, allocations: 63.41 kB / 0.6053 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00301/0.5683, allocations: 1.658 MB / 0.607 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001993/0.5703, allocations: 0.6526 MB / 0.6076 GB, free: 9.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005532/0.5709, allocations: 135.7 kB / 0.6077 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008841/0.5798, allocations: 5.915 MB / 0.6135 GB, free: 3.793 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007666/0.5806, allocations: 71.84 kB / 0.6136 GB, free: 3.723 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.902e-05/0.5807, allocations: 44 kB / 0.6136 GB, free: 3.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003442/0.581, allocations: 277.2 kB / 0.6139 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.5812, allocations: 83.05 kB / 0.614 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/0.5836, allocations: 1.43 MB / 0.6154 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.149e-05/0.5837, allocations: 27.98 kB / 0.6154 GB, free: 1.832 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.5837, allocations: 3.984 kB / 0.6154 GB, free: 1.828 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.5837, allocations: 7.922 kB / 0.6154 GB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.5883, allocations: 2.807 MB / 0.6181 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.5883, allocations: 8 kB / 0.6181 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.5895, allocations: 231.8 kB / 0.6184 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-05/0.5895, allocations: 7.953 kB / 0.6184 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.427e-05/0.5896, allocations: 23.98 kB / 0.6184 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.666e-06/0.5896, allocations: 4 kB / 0.6184 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5896, allocations: 4 kB / 0.6184 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/0.593, allocations: 2.34 MB / 0.6207 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000323/0.5933, allocations: 148.2 kB / 0.6208 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.5935, allocations: 31.98 kB / 0.6209 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.594, allocations: 55.94 kB / 0.6209 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.5943, allocations: 116.6 kB / 0.621 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.651e-05/0.5944, allocations: 28 kB / 0.6211 GB, free: 11.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004401/0.5948, allocations: 333.5 kB / 0.6214 GB, free: 11.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5948, allocations: 0 / 0.6214 GB, free: 11.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001137/0.596, allocations: 323.9 kB / 0.6217 GB, free: 11.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004111/0.5964, allocations: 211.1 kB / 0.6219 GB, free: 11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003641/0.6, allocations: 1.847 MB / 0.6237 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6001, allocations: 0 / 0.6237 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.6013, allocations: 0.9054 MB / 0.6246 GB, free: 8.188 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008784/0.6022, allocations: 119.7 kB / 0.6247 GB, free: 8.074 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.6055, allocations: 1.88 MB / 0.6265 GB, free: 6.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000826/0.6064, allocations: 1.121 MB / 0.6276 GB, free: 5.012 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007235/0.6071, allocations: 234.9 kB / 0.6278 GB, free: 4.777 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.6074, allocations: 63.42 kB / 0.6279 GB, free: 4.715 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6074, allocations: 0 / 0.6279 GB, free: 4.715 MB / 426.7 MB Notification: Performance of Templates: time 0.02268/0.6301, allocations: 12.53 MB / 0.6401 GB, free: 8.191 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.RXline.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches