Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002056/0.002055, allocations: 184.2 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.974/1.974, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001123, allocations: 95.84 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2976/0.2976, allocations: 37.97 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.192e-05/4.21e-05, allocations: 8 kB / 416.8 MB, free: 41.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 56.3 MB / 473.1 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5196/0.6308, allocations: 106.9 MB / 0.5665 GB, free: 12.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003946/0.6313, allocations: 87.95 kB / 0.5666 GB, free: 12.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1271/0.7584, allocations: 25.08 MB / 0.591 GB, free: 3.332 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.7584, allocations: 4 kB / 0.591 GB, free: 3.328 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.04e-05/0.7585, allocations: 20 kB / 0.5911 GB, free: 3.309 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004135/0.7627, allocations: 1.381 MB / 0.5924 GB, free: 1.852 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.7627, allocations: 8.031 kB / 0.5924 GB, free: 1.844 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00171/0.7644, allocations: 206.3 kB / 0.5926 GB, free: 1.641 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00465/0.7691, allocations: 1.2 MB / 0.5938 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.7693, allocations: 81.98 kB / 0.5939 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002919/0.7696, allocations: 111.9 kB / 0.594 GB, free: 216 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003831/0.7734, allocations: 1.555 MB / 0.5955 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.276e-05/0.7735, allocations: 4 kB / 0.5955 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001774/0.7737, allocations: 43.98 kB / 0.5955 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.7738, allocations: 69.97 kB / 0.5956 GB, free: 14.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003574/0.7774, allocations: 1.363 MB / 0.5969 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.7907, allocations: 5.694 MB / 0.6025 GB, free: 7.219 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/0.7935, allocations: 1.054 MB / 0.6035 GB, free: 6.141 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.7955, allocations: 0.8097 MB / 0.6043 GB, free: 5.328 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.7956, allocations: 16.97 kB / 0.6043 GB, free: 5.312 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002513/0.7981, allocations: 1.107 MB / 0.6054 GB, free: 4.176 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 4.108e-06/0.7982, allocations: 0 / 0.6054 GB, free: 4.176 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.009537/0.8077, allocations: 3.749 MB / 0.6091 GB, free: 332 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/0.8079, allocations: 225.2 kB / 0.6093 GB, free: 60 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009333/0.8089, allocations: 484.8 kB / 0.6098 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001612/0.8091, allocations: 65.64 kB / 0.6098 GB, free: 15.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000439/0.8095, allocations: 471 kB / 0.6103 GB, free: 15.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005953/0.8101, allocations: 481.5 kB / 0.6107 GB, free: 14.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.8103, allocations: 32 kB / 0.6108 GB, free: 14.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.8105, allocations: 378.8 kB / 0.6111 GB, free: 14.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/0.8122, allocations: 0.6756 MB / 0.6118 GB, free: 13.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.8142, allocations: 0.9531 MB / 0.6127 GB, free: 12.44 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.8162, allocations: 0.84 MB / 0.6135 GB, free: 11.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.8162, allocations: 0 / 0.6135 GB, free: 11.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.00911/0.8254, allocations: 2.78 MB / 0.6162 GB, free: 8.781 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.669e-05/0.8255, allocations: 63.39 kB / 0.6163 GB, free: 8.707 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008105/0.8336, allocations: 2.364 MB / 0.6186 GB, free: 6.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005946/0.8396, allocations: 1.083 MB / 0.6197 GB, free: 5.254 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.8407, allocations: 151.7 kB / 0.6198 GB, free: 5.105 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02299/0.8637, allocations: 8.289 MB / 0.6279 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.8652, allocations: 95.84 kB / 0.628 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.8654, allocations: 52 kB / 0.628 GB, free: 12.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * 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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005639/0.866, allocations: 284 kB / 0.6283 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003296/0.8663, allocations: 106.8 kB / 0.6284 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004739/0.8711, allocations: 1.826 MB / 0.6302 GB, free: 10.28 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-05/0.8712, allocations: 35.98 kB / 0.6302 GB, free: 10.24 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.8712, allocations: 7.938 kB / 0.6302 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.8712, allocations: 11.97 kB / 0.6303 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008961/0.8802, allocations: 3.367 MB / 0.6335 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.8803, allocations: 4 kB / 0.6335 GB, free: 6.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004002/0.8843, allocations: 383.6 kB / 0.6339 GB, free: 6.395 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.8845, allocations: 32.8 kB / 0.6339 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003123/0.8849, allocations: 31.98 kB / 0.634 GB, free: 6.328 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.8863, allocations: 1.335 MB / 0.6353 GB, free: 4.863 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.8863, allocations: 0 / 0.6353 GB, free: 4.863 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007507/0.8938, allocations: 2.909 MB / 0.6381 GB, free: 1.891 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.8949, allocations: 299.8 kB / 0.6384 GB, free: 1.578 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/0.8952, allocations: 43.97 kB / 0.6384 GB, free: 1.535 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.8964, allocations: 75.91 kB / 0.6385 GB, free: 1.461 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/0.8968, allocations: 144.7 kB / 0.6387 GB, free: 1.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.897, allocations: 35.98 kB / 0.6387 GB, free: 1.285 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007528/0.8978, allocations: 377.5 kB / 0.6391 GB, free: 0.918 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8978, allocations: 0 / 0.6391 GB, free: 0.918 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001937/0.8997, allocations: 404 kB / 0.6394 GB, free: 0.5234 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.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_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005757/0.9003, allocations: 226.8 kB / 0.6397 GB, free: 300 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3864/1.287, allocations: 2.472 MB / 0.6421 GB, free: 135.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/1.287, allocations: 3.031 kB / 0.6421 GB, free: 135.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.291, allocations: 1.186 MB / 0.6432 GB, free: 135.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/1.293, allocations: 137.4 kB / 0.6434 GB, free: 135.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/1.305, allocations: 2.557 MB / 0.6459 GB, free: 135 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/1.307, allocations: 1.235 MB / 0.6471 GB, free: 134.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/1.308, allocations: 82.91 kB / 0.6471 GB, free: 134.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.433e-06/1.308, allocations: 0 / 0.6471 GB, free: 134.3 MB / 474.7 MB Notification: Performance of Templates: time 0.0605/1.368, allocations: 18.69 MB / 0.6654 GB, free: 133.5 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)