Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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.FaultRXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|abc.i_abc.1.|abc.i_abc.2.|abc.i_abc.3.|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.FaultRXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|abc.i_abc.1.|abc.i_abc.2.|abc.i_abc.3.|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.FaultRXline") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001548/0.001548, allocations: 183.4 kB / 8.136 MB, free: 2.207 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.226/1.226, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009021/0.0009021, allocations: 93.55 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1919/0.1919, allocations: 37.96 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/6.913e-06, allocations: 0 / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 56.31 MB / 466.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3693/0.4765, allocations: 105.4 MB / 0.5583 GB, free: 5.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.4769, allocations: 87.95 kB / 0.5584 GB, free: 5.094 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07138/0.5483, allocations: 24.66 MB / 0.5825 GB, free: 12.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.707e-05/0.5485, allocations: 24 kB / 0.5825 GB, free: 12.14 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.002872/0.5513, allocations: 1.361 MB / 0.5838 GB, free: 10.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.5514, allocations: 8.031 kB / 0.5838 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/0.5525, allocations: 206.3 kB / 0.584 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003835/0.5564, allocations: 1.305 MB / 0.5853 GB, free: 9.125 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.341e-05/0.5565, allocations: 43.98 kB / 0.5853 GB, free: 9.082 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.5567, allocations: 64 kB / 0.5854 GB, free: 9.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002577/0.5593, allocations: 1.316 MB / 0.5867 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0024/0.5617, allocations: 1.455 MB / 0.5881 GB, free: 6.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.5617, allocations: 15.92 kB / 0.5881 GB, free: 6.145 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.5619, allocations: 7.984 kB / 0.5881 GB, free: 6.137 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.562, allocations: 65.97 kB / 0.5882 GB, free: 6.074 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009339/0.5713, allocations: 5.598 MB / 0.5937 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.5728, allocations: 0.9102 MB / 0.5945 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.5739, allocations: 0.8132 MB / 0.5953 GB, free: 14.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.8e-05/0.574, allocations: 16.97 kB / 0.5954 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001455/0.5755, allocations: 1.008 MB / 0.5963 GB, free: 13.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=161): time 3.296e-06/0.5755, allocations: 0 / 0.5963 GB, free: 13.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.006512/0.582, allocations: 3.565 MB / 0.5998 GB, free: 9.887 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/0.5823, allocations: 238.9 kB / 0.6001 GB, free: 9.605 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007589/0.583, allocations: 466 kB / 0.6005 GB, free: 9.141 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.5831, allocations: 41.69 kB / 0.6005 GB, free: 9.094 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.5836, allocations: 380.5 kB / 0.6009 GB, free: 8.715 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000457/0.5841, allocations: 473.3 kB / 0.6014 GB, free: 8.246 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-05/0.5841, allocations: 0 / 0.6014 GB, free: 8.246 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.5844, allocations: 418.8 kB / 0.6017 GB, free: 7.828 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.5854, allocations: 0.6756 MB / 0.6024 GB, free: 7.152 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.5867, allocations: 0.9561 MB / 0.6033 GB, free: 6.098 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.588, allocations: 0.7976 MB / 0.6041 GB, free: 5.301 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.588, allocations: 4 kB / 0.6041 GB, free: 5.297 MB / 442.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007287/0.5953, allocations: 2.657 MB / 0.6067 GB, free: 2.621 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.5954, allocations: 4 kB / 0.6067 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007612/0.603, allocations: 2.272 MB / 0.6089 GB, free: 356 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005463/0.6085, allocations: 1.032 MB / 0.61 GB, free: 15.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.6097, allocations: 143.6 kB / 0.6101 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01921/0.6289, allocations: 7.448 MB / 0.6174 GB, free: 7.598 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.6304, allocations: 47.95 kB / 0.6174 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003889/0.6309, allocations: 63.92 kB / 0.6175 GB, free: 7.488 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$whenCondition22,$whenCondition21,$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],$PRE.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 139 * Array equations: 4 * 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 {(12,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007764/0.6317, allocations: 236 kB / 0.6177 GB, free: 7.238 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005053/0.6322, allocations: 106.8 kB / 0.6178 GB, free: 7.133 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/0.6368, allocations: 1.704 MB / 0.6195 GB, free: 5.418 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-05/0.6369, allocations: 28 kB / 0.6195 GB, free: 5.391 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.6369, allocations: 0 / 0.6195 GB, free: 5.391 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/0.637, allocations: 11.88 kB / 0.6195 GB, free: 5.379 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009214/0.6462, allocations: 3.442 MB / 0.6229 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.6463, allocations: 4 kB / 0.6229 GB, free: 1.832 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002908/0.6492, allocations: 368 kB / 0.6232 GB, free: 1.473 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002475/0.6494, allocations: 60.72 kB / 0.6233 GB, free: 1.41 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.6496, allocations: 19.98 kB / 0.6233 GB, free: 1.391 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/0.6515, allocations: 1.498 MB / 0.6248 GB, free: 15.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-05/0.6516, allocations: 7.906 kB / 0.6248 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006384/0.6579, allocations: 3.038 MB / 0.6277 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.659, allocations: 303.8 kB / 0.628 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004079/0.6594, allocations: 23.98 kB / 0.628 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6606, allocations: 55.94 kB / 0.6281 GB, free: 12.19 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/0.661, allocations: 136.7 kB / 0.6282 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/0.6613, allocations: 43.89 kB / 0.6283 GB, free: 12.01 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0007831/0.6621, allocations: 346.9 kB / 0.6286 GB, free: 11.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002392/0.6645, allocations: 344 kB / 0.6289 GB, free: 11.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 57 (switch1.switch_a.closed,switch1.switch_b.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$whenCondition22,$whenCondition21,$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,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.on,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_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000586/0.6651, allocations: 194.9 kB / 0.6291 GB, free: 11.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006776/0.6718, allocations: 2.316 MB / 0.6314 GB, free: 8.805 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.6719, allocations: 0.6875 kB / 0.6314 GB, free: 8.805 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002837/0.6747, allocations: 1.313 MB / 0.6327 GB, free: 7.469 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.6762, allocations: 126.7 kB / 0.6328 GB, free: 7.344 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008092/0.6843, allocations: 2.573 MB / 0.6353 GB, free: 4.699 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/0.6863, allocations: 1.296 MB / 0.6366 GB, free: 3.375 MB / 474.7 MB Notification: Performance of SimCode: time 3.547e-06/0.6864, allocations: 0 / 0.6366 GB, free: 3.375 MB / 474.7 MB Notification: Performance of Templates: time 0.2016/0.888, allocations: 17.3 MB / 0.6534 GB, free: 192.2 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.FaultRXline.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches