Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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.002177/0.002176, allocations: 173 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.827/2.827, allocations: 205.4 MB / 222.9 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.001008/0.001008, allocations: 96.56 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3183/0.3183, allocations: 38.08 MB / 357.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003982, allocations: 12 kB / 423.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3598, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.5435, allocations: 102.7 MB / 0.5693 GB, free: 15.62 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/0.5439, allocations: 95.94 kB / 0.5694 GB, free: 15.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08847/0.6324, allocations: 21.98 MB / 0.5909 GB, free: 9.281 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6325, allocations: 0 / 0.5909 GB, free: 9.281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.444e-05/0.6325, allocations: 24 kB / 0.5909 GB, free: 9.258 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.003746/0.6363, allocations: 1.25 MB / 0.5921 GB, free: 7.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.6364, allocations: 8.031 kB / 0.5921 GB, free: 7.922 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/0.6376, allocations: 163.5 kB / 0.5923 GB, free: 7.762 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002618/0.6403, allocations: 0.8463 MB / 0.5931 GB, free: 6.871 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.6404, allocations: 66.38 kB / 0.5932 GB, free: 6.809 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.6407, allocations: 80.38 kB / 0.5933 GB, free: 6.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.6437, allocations: 1.284 MB / 0.5945 GB, free: 5.383 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.669e-05/0.6437, allocations: 3.938 kB / 0.5945 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.6439, allocations: 43.97 kB / 0.5946 GB, free: 5.336 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.644, allocations: 57.98 kB / 0.5946 GB, free: 5.281 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002774/0.6468, allocations: 1.132 MB / 0.5957 GB, free: 4.148 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.6571, allocations: 4.569 MB / 0.6002 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.6594, allocations: 0.8249 MB / 0.601 GB, free: 14.58 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.6609, allocations: 0.6513 MB / 0.6016 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.198e-05/0.6611, allocations: 12.8 kB / 0.6016 GB, free: 13.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00202/0.6631, allocations: 0.9102 MB / 0.6025 GB, free: 12.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.679e-06/0.6631, allocations: 0 / 0.6025 GB, free: 12.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.008926/0.6721, allocations: 3.641 MB / 0.6061 GB, free: 9.242 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001886/0.6723, allocations: 238.5 kB / 0.6063 GB, free: 8.961 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000891/0.6732, allocations: 485.8 kB / 0.6068 GB, free: 8.477 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.6733, allocations: 53.69 kB / 0.6068 GB, free: 8.418 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00046/0.6738, allocations: 388.6 kB / 0.6072 GB, free: 8.031 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004991/0.6743, allocations: 386.8 kB / 0.6076 GB, free: 7.648 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.304e-05/0.6744, allocations: 23.98 kB / 0.6076 GB, free: 7.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002504/0.6747, allocations: 398.7 kB / 0.608 GB, free: 7.227 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.676, allocations: 0.5342 MB / 0.6085 GB, free: 6.691 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.6776, allocations: 0.7721 MB / 0.6092 GB, free: 5.832 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.6805, allocations: 1.412 MB / 0.6106 GB, free: 4.309 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.6806, allocations: 0 / 0.6106 GB, free: 4.309 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005851/0.6864, allocations: 2.079 MB / 0.6127 GB, free: 2.211 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.6866, allocations: 67.44 kB / 0.6127 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004438/0.691, allocations: 1.677 MB / 0.6144 GB, free: 460 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/0.6938, allocations: 0.6681 MB / 0.615 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007884/0.6946, allocations: 135.7 kB / 0.6151 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.7084, allocations: 5.938 MB / 0.6209 GB, free: 9.566 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.7097, allocations: 68 kB / 0.621 GB, free: 9.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.7099, allocations: 44 kB / 0.621 GB, free: 9.457 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.001223/0.7111, allocations: 434 kB / 0.6215 GB, free: 9.012 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/0.7115, allocations: 86.97 kB / 0.6215 GB, free: 8.926 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003523/0.715, allocations: 1.455 MB / 0.623 GB, free: 7.453 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.225e-05/0.7151, allocations: 31.97 kB / 0.623 GB, free: 7.422 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.7151, allocations: 0 / 0.623 GB, free: 7.422 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.7151, allocations: 3.984 kB / 0.623 GB, free: 7.418 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006747/0.7219, allocations: 2.822 MB / 0.6257 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.722, allocations: 0 / 0.6257 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.7235, allocations: 235.8 kB / 0.626 GB, free: 4.281 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.707e-05/0.7235, allocations: 4 kB / 0.626 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.7236, allocations: 27.98 kB / 0.626 GB, free: 4.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-05/0.7236, allocations: 4 kB / 0.626 GB, free: 4.246 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.7237, allocations: 0 / 0.626 GB, free: 4.246 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/0.7285, allocations: 2.326 MB / 0.6283 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.7289, allocations: 148.1 kB / 0.6284 GB, free: 1.715 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/0.7291, allocations: 31.98 kB / 0.6285 GB, free: 1.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007572/0.7299, allocations: 55.94 kB / 0.6285 GB, free: 1.629 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003784/0.7303, allocations: 112.8 kB / 0.6286 GB, free: 1.516 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.7304, allocations: 31.98 kB / 0.6286 GB, free: 1.484 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007413/0.7312, allocations: 334.8 kB / 0.629 GB, free: 1.156 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7312, allocations: 0 / 0.629 GB, free: 1.156 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001903/0.7331, allocations: 320 kB / 0.6293 GB, free: 0.8438 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.0005378/0.7337, allocations: 211 kB / 0.6295 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005067/0.7388, allocations: 1.881 MB / 0.6313 GB, free: 14.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.7388, allocations: 3.938 kB / 0.6313 GB, free: 14.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.7407, allocations: 0.8915 MB / 0.6322 GB, free: 13.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.7423, allocations: 128.6 kB / 0.6323 GB, free: 13.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006474/0.7488, allocations: 2.775 MB / 0.635 GB, free: 10.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.75, allocations: 1.097 MB / 0.6361 GB, free: 9.719 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/0.7506, allocations: 75.42 kB / 0.6362 GB, free: 9.645 MB / 474.7 MB Notification: Performance of SimCode: time 8.72e-07/0.7506, allocations: 0 / 0.6362 GB, free: 9.645 MB / 474.7 MB Notification: Performance of Templates: time 0.3212/1.072, allocations: 14.25 MB / 0.6501 GB, free: 139 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)