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.001297/0.001297, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000924/0.0009236, allocations: 86.47 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.211/0.211, allocations: 38 MB / 348 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.849e-05/1.852e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.5759, allocations: 101.9 MB / 0.5555 GB, free: 8.973 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.5762, allocations: 87.95 kB / 0.5556 GB, free: 8.887 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06078/0.637, allocations: 21.81 MB / 0.5769 GB, free: 2.828 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6371, allocations: 0 / 0.5769 GB, free: 2.828 MB / 411.1 MB Notification: Performance of Transformations before backend: time 5.047e-05/0.6372, allocations: 24 kB / 0.5769 GB, free: 2.805 MB / 411.1 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.002573/0.6398, allocations: 1.176 MB / 0.5781 GB, free: 1.555 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.684e-05/0.6398, allocations: 12.03 kB / 0.5781 GB, free: 1.543 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00088/0.6407, allocations: 151.4 kB / 0.5782 GB, free: 1.395 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003001/0.6437, allocations: 1.195 MB / 0.5794 GB, free: 160 kB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/0.6438, allocations: 35.95 kB / 0.5794 GB, free: 124 kB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.644, allocations: 55.94 kB / 0.5795 GB, free: 68 kB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001703/0.6457, allocations: 1.007 MB / 0.5805 GB, free: 15.05 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.6474, allocations: 1.139 MB / 0.5816 GB, free: 13.86 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.6475, allocations: 4 kB / 0.5816 GB, free: 13.85 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.6476, allocations: 11.89 kB / 0.5816 GB, free: 13.84 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.6477, allocations: 57.92 kB / 0.5816 GB, free: 13.79 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005948/0.6537, allocations: 4.402 MB / 0.5859 GB, free: 9.246 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.6548, allocations: 0.7766 MB / 0.5867 GB, free: 8.449 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007732/0.6556, allocations: 0.6221 MB / 0.5873 GB, free: 7.824 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.106e-05/0.6557, allocations: 17.66 kB / 0.5873 GB, free: 7.809 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.6568, allocations: 0.8608 MB / 0.5882 GB, free: 6.914 MB / 427.1 MB Notification: Performance of pre-optimization done (n=126): time 2.625e-06/0.6568, allocations: 0 / 0.5882 GB, free: 6.914 MB / 427.1 MB Notification: Performance of matching and sorting (n=127): time 0.004365/0.6612, allocations: 2.773 MB / 0.5909 GB, free: 4.082 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.6614, allocations: 234.9 kB / 0.5911 GB, free: 3.805 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004781/0.6619, allocations: 389 kB / 0.5915 GB, free: 3.422 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 6.518e-05/0.6619, allocations: 33.77 kB / 0.5915 GB, free: 3.383 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/0.6623, allocations: 396.1 kB / 0.5919 GB, free: 2.988 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003298/0.6626, allocations: 362.9 kB / 0.5922 GB, free: 2.629 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.6627, allocations: 0 / 0.5922 GB, free: 2.629 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.6629, allocations: 402.7 kB / 0.5926 GB, free: 2.227 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.6636, allocations: 0.4953 MB / 0.5931 GB, free: 1.73 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008466/0.6644, allocations: 0.727 MB / 0.5938 GB, free: 0.918 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008584/0.6653, allocations: 0.58 MB / 0.5944 GB, free: 348 kB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.6654, allocations: 7.938 kB / 0.5944 GB, free: 340 kB / 427.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003394/0.6688, allocations: 1.886 MB / 0.5962 GB, free: 14.43 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-05/0.6688, allocations: 65.12 kB / 0.5963 GB, free: 14.36 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002759/0.6716, allocations: 1.582 MB / 0.5978 GB, free: 12.78 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.6734, allocations: 0.6523 MB / 0.5985 GB, free: 12.12 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.6739, allocations: 135.7 kB / 0.5986 GB, free: 11.99 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008035/0.6819, allocations: 5.673 MB / 0.6041 GB, free: 6.188 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/0.6827, allocations: 43.84 kB / 0.6042 GB, free: 6.145 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-05/0.6828, allocations: 44 kB / 0.6042 GB, free: 6.102 MB / 443.1 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.0003337/0.6832, allocations: 235.1 kB / 0.6044 GB, free: 5.855 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.6834, allocations: 83.02 kB / 0.6045 GB, free: 5.773 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.6854, allocations: 1.284 MB / 0.6058 GB, free: 4.48 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-05/0.6855, allocations: 32.06 kB / 0.6058 GB, free: 4.449 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.6855, allocations: 4 kB / 0.6058 GB, free: 4.445 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.6855, allocations: 11.97 kB / 0.6058 GB, free: 4.434 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003916/0.6894, allocations: 2.529 MB / 0.6083 GB, free: 1.848 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.6895, allocations: 0 / 0.6083 GB, free: 1.848 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.6905, allocations: 243.7 kB / 0.6085 GB, free: 1.609 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.6906, allocations: 4 kB / 0.6085 GB, free: 1.605 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/0.6906, allocations: 11.98 kB / 0.6085 GB, free: 1.594 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.6906, allocations: 4 kB / 0.6085 GB, free: 1.59 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.6907, allocations: 8 kB / 0.6085 GB, free: 1.582 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.6935, allocations: 2.188 MB / 0.6107 GB, free: 15.34 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.6937, allocations: 144.1 kB / 0.6108 GB, free: 15.18 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.6939, allocations: 23.98 kB / 0.6108 GB, free: 15.16 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.6944, allocations: 39.88 kB / 0.6109 GB, free: 15.12 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.6946, allocations: 112.6 kB / 0.611 GB, free: 15.01 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.6947, allocations: 35.98 kB / 0.611 GB, free: 14.97 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003778/0.6951, allocations: 286.9 kB / 0.6113 GB, free: 14.69 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6951, allocations: 0 / 0.6113 GB, free: 14.69 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001174/0.6963, allocations: 279.9 kB / 0.6116 GB, free: 14.42 MB / 459.1 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.0003848/0.6967, allocations: 200.2 kB / 0.6117 GB, free: 14.22 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.6998, allocations: 1.764 MB / 0.6135 GB, free: 12.41 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.6998, allocations: 0 / 0.6135 GB, free: 12.41 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.701, allocations: 0.8814 MB / 0.6143 GB, free: 11.51 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007471/0.7017, allocations: 94.16 kB / 0.6144 GB, free: 11.42 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.7054, allocations: 1.822 MB / 0.6162 GB, free: 9.559 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009055/0.7063, allocations: 1.129 MB / 0.6173 GB, free: 8.406 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0007462/0.7071, allocations: 234.8 kB / 0.6175 GB, free: 8.172 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/0.7074, allocations: 63.42 kB / 0.6176 GB, free: 8.109 MB / 459.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7074, allocations: 0 / 0.6176 GB, free: 8.109 MB / 459.1 MB Notification: Performance of Templates: time 0.02245/0.7299, allocations: 11.83 MB / 0.6291 GB, free: 12.28 MB / 475.1 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