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.0009739/0.0009741, allocations: 176.2 kB / 17.4 MB, free: 4.418 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.677/1.677, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0008543/0.0008541, allocations: 82.38 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.179/0.179, allocations: 38.08 MB / 358.2 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004495, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3695, allocations: 56.32 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.5248, allocations: 102.7 MB / 0.5706 GB, free: 15.52 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.5252, allocations: 103.7 kB / 0.5707 GB, free: 15.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06381/0.589, allocations: 21.98 MB / 0.5922 GB, free: 9.176 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.589, allocations: 0 / 0.5922 GB, free: 9.176 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.987e-05/0.5891, allocations: 24 kB / 0.5922 GB, free: 9.152 MB / 426.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.003939/0.5931, allocations: 1.254 MB / 0.5934 GB, free: 7.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.5932, allocations: 8.031 kB / 0.5934 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001304/0.5945, allocations: 163.5 kB / 0.5936 GB, free: 7.652 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002358/0.5969, allocations: 0.8386 MB / 0.5944 GB, free: 6.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-05/0.597, allocations: 66.38 kB / 0.5945 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/0.5973, allocations: 84.36 kB / 0.5945 GB, free: 6.625 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002681/0.6, allocations: 1.276 MB / 0.5958 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.329e-05/0.6001, allocations: 19.8 kB / 0.5958 GB, free: 5.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.6002, allocations: 43.97 kB / 0.5958 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.52e-05/0.6003, allocations: 53.98 kB / 0.5959 GB, free: 5.172 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.6025, allocations: 1.136 MB / 0.597 GB, free: 4.035 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007728/0.6102, allocations: 4.565 MB / 0.6015 GB, free: 15.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.6117, allocations: 0.8269 MB / 0.6023 GB, free: 14.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009866/0.6127, allocations: 0.6486 MB / 0.6029 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.6128, allocations: 12.66 kB / 0.6029 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/0.6142, allocations: 0.9073 MB / 0.6038 GB, free: 12.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 6.041e-06/0.6142, allocations: 0 / 0.6038 GB, free: 12.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.006705/0.6209, allocations: 3.637 MB / 0.6073 GB, free: 9.141 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.6212, allocations: 242.5 kB / 0.6076 GB, free: 8.855 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008187/0.622, allocations: 485.8 kB / 0.608 GB, free: 8.371 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.445e-05/0.6221, allocations: 61.92 kB / 0.6081 GB, free: 8.305 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.6225, allocations: 384.3 kB / 0.6085 GB, free: 7.922 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004099/0.6229, allocations: 382.8 kB / 0.6088 GB, free: 7.543 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.623, allocations: 20 kB / 0.6089 GB, free: 7.523 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.6232, allocations: 398.7 kB / 0.6092 GB, free: 7.125 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009448/0.6242, allocations: 0.538 MB / 0.6098 GB, free: 6.586 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.6252, allocations: 0.776 MB / 0.6105 GB, free: 5.723 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.6272, allocations: 1.412 MB / 0.6119 GB, free: 4.199 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.6272, allocations: 0 / 0.6119 GB, free: 4.199 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003943/0.6311, allocations: 2.078 MB / 0.6139 GB, free: 2.102 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.182e-05/0.6312, allocations: 63.41 kB / 0.614 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003114/0.6343, allocations: 1.681 MB / 0.6156 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001952/0.6363, allocations: 0.6642 MB / 0.6163 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.6368, allocations: 135.7 kB / 0.6164 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009225/0.646, allocations: 5.942 MB / 0.6222 GB, free: 9.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007818/0.6469, allocations: 63.94 kB / 0.6223 GB, free: 9.395 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.647, allocations: 48 kB / 0.6223 GB, free: 9.348 MB / 458.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 () * Number of clocked 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.0009293/0.648, allocations: 430 kB / 0.6227 GB, free: 8.906 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/0.6483, allocations: 86.97 kB / 0.6228 GB, free: 8.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.6507, allocations: 1.455 MB / 0.6242 GB, free: 7.348 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.086e-05/0.6508, allocations: 27.98 kB / 0.6243 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.6508, allocations: 0 / 0.6243 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.6508, allocations: 3.984 kB / 0.6243 GB, free: 7.316 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00486/0.6557, allocations: 2.826 MB / 0.627 GB, free: 4.406 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.6557, allocations: 4.094 kB / 0.627 GB, free: 4.402 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.6568, allocations: 235.7 kB / 0.6272 GB, free: 4.172 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.487e-05/0.6568, allocations: 4 kB / 0.6273 GB, free: 4.168 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.6569, allocations: 31.98 kB / 0.6273 GB, free: 4.137 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/0.6569, allocations: 4 kB / 0.6273 GB, free: 4.133 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6569, allocations: 0 / 0.6273 GB, free: 4.133 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00337/0.6603, allocations: 2.319 MB / 0.6296 GB, free: 1.773 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002623/0.6606, allocations: 152.1 kB / 0.6297 GB, free: 1.605 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.6608, allocations: 35.98 kB / 0.6297 GB, free: 1.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005016/0.6613, allocations: 51.94 kB / 0.6298 GB, free: 1.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/0.6616, allocations: 112.8 kB / 0.6299 GB, free: 1.406 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.6617, allocations: 35.97 kB / 0.6299 GB, free: 1.371 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005238/0.6622, allocations: 334.8 kB / 0.6302 GB, free: 1.043 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6622, allocations: 0 / 0.6302 GB, free: 1.043 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001371/0.6636, allocations: 320 kB / 0.6305 GB, free: 0.7305 MB / 458.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) * Number of clocked states: 0 () * 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.0004883/0.6641, allocations: 211 kB / 0.6307 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003474/0.6676, allocations: 1.873 MB / 0.6326 GB, free: 14.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.6676, allocations: 4.125 kB / 0.6326 GB, free: 14.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.6689, allocations: 0.9064 MB / 0.6335 GB, free: 13.67 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009319/0.6698, allocations: 129.8 kB / 0.6336 GB, free: 13.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.6742, allocations: 2.699 MB / 0.6362 GB, free: 10.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007844/0.675, allocations: 1.097 MB / 0.6373 GB, free: 9.676 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007279/0.6758, allocations: 234.9 kB / 0.6375 GB, free: 9.441 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.676, allocations: 63.44 kB / 0.6376 GB, free: 9.379 MB / 474.7 MB Notification: Performance of SimCode: time 7.51e-07/0.676, allocations: 4 kB / 0.6376 GB, free: 9.375 MB / 474.7 MB Notification: Performance of Templates: time 0.2493/0.9254, allocations: 12.49 MB / 0.6498 GB, free: 139.8 MB / 474.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/jenkins1/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