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.001027/0.001027, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.38/1.38, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008519/0.0008521, allocations: 87.2 kB / 270.8 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1792/0.1792, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 11.98 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2942, allocations: 56.31 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4292, allocations: 102.7 MB / 0.5693 GB, free: 15.69 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.4295, allocations: 95.95 kB / 0.5694 GB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05884/0.4883, allocations: 22 MB / 0.5909 GB, free: 9.328 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4884, allocations: 0 / 0.5909 GB, free: 9.328 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.058e-05/0.4884, allocations: 24 kB / 0.5909 GB, free: 9.305 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.002248/0.4907, allocations: 1.265 MB / 0.5922 GB, free: 7.957 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4907, allocations: 12.03 kB / 0.5922 GB, free: 7.945 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007305/0.4915, allocations: 150.6 kB / 0.5923 GB, free: 7.797 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003009/0.4945, allocations: 1.216 MB / 0.5935 GB, free: 6.539 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.784e-05/0.4946, allocations: 73.95 kB / 0.5936 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.4947, allocations: 83.98 kB / 0.5937 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.4966, allocations: 1.283 MB / 0.5949 GB, free: 5.039 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.4966, allocations: 0 / 0.5949 GB, free: 5.039 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.4967, allocations: 36 kB / 0.595 GB, free: 5.004 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-05/0.4968, allocations: 53.98 kB / 0.595 GB, free: 4.949 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.4984, allocations: 1.132 MB / 0.5961 GB, free: 3.816 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005978/0.5044, allocations: 4.587 MB / 0.6006 GB, free: 15.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.5057, allocations: 0.8202 MB / 0.6014 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.5057, allocations: 8.719 kB / 0.6014 GB, free: 14.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.5069, allocations: 0.9111 MB / 0.6023 GB, free: 13.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 2.675e-06/0.5069, allocations: 0 / 0.6023 GB, free: 13.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.005387/0.5123, allocations: 4.046 MB / 0.6062 GB, free: 9.055 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.5124, allocations: 242.8 kB / 0.6065 GB, free: 8.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005106/0.513, allocations: 433 kB / 0.6069 GB, free: 8.336 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.513, allocations: 53.64 kB / 0.6069 GB, free: 8.277 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.5133, allocations: 400.2 kB / 0.6073 GB, free: 7.879 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.5136, allocations: 370.9 kB / 0.6077 GB, free: 7.512 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.512e-05/0.5137, allocations: 24 kB / 0.6077 GB, free: 7.488 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.5139, allocations: 402.7 kB / 0.6081 GB, free: 7.086 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007328/0.5146, allocations: 0.5264 MB / 0.6086 GB, free: 6.562 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008781/0.5155, allocations: 0.776 MB / 0.6094 GB, free: 5.699 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008666/0.5164, allocations: 0.6652 MB / 0.61 GB, free: 5.023 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.5164, allocations: 4 kB / 0.61 GB, free: 5.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00359/0.52, allocations: 2.067 MB / 0.612 GB, free: 2.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/0.5201, allocations: 75.36 kB / 0.6121 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002885/0.5229, allocations: 1.677 MB / 0.6137 GB, free: 1.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/0.525, allocations: 0.6603 MB / 0.6144 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/0.5256, allocations: 131.7 kB / 0.6145 GB, free: 376 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008791/0.5344, allocations: 6.174 MB / 0.6205 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007948/0.5352, allocations: 67.88 kB / 0.6206 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-05/0.5353, allocations: 44 kB / 0.6206 GB, free: 9.949 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.0006897/0.536, allocations: 434.1 kB / 0.6211 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.5362, allocations: 82.97 kB / 0.6211 GB, free: 9.422 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.5384, allocations: 1.455 MB / 0.6226 GB, free: 7.949 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.006e-05/0.5384, allocations: 27.98 kB / 0.6226 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.5384, allocations: 0 / 0.6226 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.5384, allocations: 3.984 kB / 0.6226 GB, free: 7.918 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.5435, allocations: 2.826 MB / 0.6253 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.5435, allocations: 0 / 0.6253 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.5446, allocations: 235.8 kB / 0.6256 GB, free: 4.781 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.5446, allocations: 4 kB / 0.6256 GB, free: 4.777 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.5447, allocations: 35.94 kB / 0.6256 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.175e-06/0.5447, allocations: 4.156 kB / 0.6256 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5447, allocations: 0 / 0.6256 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.5478, allocations: 2.368 MB / 0.6279 GB, free: 2.301 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.5481, allocations: 152.1 kB / 0.6281 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.5482, allocations: 31.98 kB / 0.6281 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004444/0.5486, allocations: 59.92 kB / 0.6282 GB, free: 2.043 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.5489, allocations: 104.8 kB / 0.6283 GB, free: 1.941 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/0.549, allocations: 35.98 kB / 0.6283 GB, free: 1.906 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003679/0.5493, allocations: 334.8 kB / 0.6286 GB, free: 1.578 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5494, allocations: 4 kB / 0.6286 GB, free: 1.574 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009902/0.5503, allocations: 327.9 kB / 0.6289 GB, free: 1.254 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.0003217/0.5507, allocations: 211.1 kB / 0.6291 GB, free: 1.035 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.5536, allocations: 1.869 MB / 0.631 GB, free: 15.13 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5536, allocations: 8 kB / 0.631 GB, free: 15.12 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.5547, allocations: 0.9142 MB / 0.6319 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.5553, allocations: 120.9 kB / 0.632 GB, free: 14.07 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003702/0.559, allocations: 2.68 MB / 0.6346 GB, free: 11.35 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006987/0.5597, allocations: 1.125 MB / 0.6357 GB, free: 10.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006572/0.5604, allocations: 242.9 kB / 0.6359 GB, free: 9.953 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.5606, allocations: 63.42 kB / 0.636 GB, free: 9.891 MB / 474.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5606, allocations: 0 / 0.636 GB, free: 9.891 MB / 474.7 MB Notification: Performance of Templates: time 0.212/0.7726, allocations: 12.43 MB / 0.6481 GB, free: 139.7 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/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