Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001939/0.001939, allocations: 173.5 kB / 16.76 MB, free: 5.059 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.752/2.752, 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.001187/0.001187, allocations: 90.36 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.3895/0.3895, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006185/0.0006186, allocations: 16 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5486/0.5492, allocations: 56.32 MB / 480.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2357/0.785, allocations: 107.1 MB / 0.5736 GB, free: 11.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004263/0.7855, allocations: 91.95 kB / 0.5737 GB, free: 11.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.118/0.9035, allocations: 25.09 MB / 0.5982 GB, free: 1.812 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.9036, allocations: 0 / 0.5982 GB, free: 1.812 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.773e-05/0.9037, allocations: 23.94 kB / 0.5982 GB, free: 1.789 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.005957/0.9097, allocations: 1.467 MB / 0.5996 GB, free: 248 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.874e-05/0.9098, allocations: 12.03 kB / 0.5996 GB, free: 236 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.9122, allocations: 195.3 kB / 0.5998 GB, free: 40 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003679/0.9159, allocations: 0.9092 MB / 0.6007 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.9161, allocations: 81.98 kB / 0.6008 GB, free: 15.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00052/0.9166, allocations: 104 kB / 0.6009 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004839/0.9215, allocations: 1.582 MB / 0.6024 GB, free: 13.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.522e-05/0.9216, allocations: 3.938 kB / 0.6024 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/0.9218, allocations: 47.97 kB / 0.6025 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/0.922, allocations: 73.97 kB / 0.6025 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004226/0.9263, allocations: 1.39 MB / 0.6039 GB, free: 11.72 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01643/0.9428, allocations: 5.702 MB / 0.6095 GB, free: 5.855 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/0.9461, allocations: 1.07 MB / 0.6105 GB, free: 4.766 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002152/0.9483, allocations: 0.8096 MB / 0.6113 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.9485, allocations: 17 kB / 0.6113 GB, free: 3.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002744/0.9513, allocations: 1.111 MB / 0.6124 GB, free: 2.785 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 6.662e-06/0.9513, allocations: 0 / 0.6124 GB, free: 2.785 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.01289/0.9642, allocations: 4.564 MB / 0.6169 GB, free: 14.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.9645, allocations: 217.2 kB / 0.6171 GB, free: 13.86 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.9658, allocations: 0.5496 MB / 0.6176 GB, free: 13.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002829/0.9661, allocations: 65.75 kB / 0.6177 GB, free: 13.22 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006109/0.9667, allocations: 452.4 kB / 0.6181 GB, free: 12.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008248/0.9676, allocations: 485.3 kB / 0.6186 GB, free: 12.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.9678, allocations: 32 kB / 0.6186 GB, free: 12.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003322/0.9682, allocations: 414.7 kB / 0.619 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.9701, allocations: 0.6871 MB / 0.6197 GB, free: 11.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.9723, allocations: 0.976 MB / 0.6206 GB, free: 10.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004106/0.9764, allocations: 1.793 MB / 0.6224 GB, free: 8.176 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/0.9765, allocations: 3.938 kB / 0.6224 GB, free: 8.172 MB / 458.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009283/0.9858, allocations: 2.842 MB / 0.6251 GB, free: 5.305 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.9859, allocations: 63.34 kB / 0.6252 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007991/0.9939, allocations: 2.384 MB / 0.6275 GB, free: 2.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005143/0.9992, allocations: 1.087 MB / 0.6286 GB, free: 1.754 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/1, allocations: 147.7 kB / 0.6287 GB, free: 1.609 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02212/1.022, allocations: 8.324 MB / 0.6369 GB, free: 9.141 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/1.024, allocations: 91.91 kB / 0.6369 GB, free: 9.051 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004064/1.025, allocations: 52 kB / 0.637 GB, free: 9 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 () * Number of clocked 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.001681/1.026, allocations: 488.7 kB / 0.6375 GB, free: 8.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005886/1.027, allocations: 98.88 kB / 0.6376 GB, free: 8.402 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005275/1.032, allocations: 1.857 MB / 0.6394 GB, free: 6.531 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.287e-05/1.032, allocations: 35.98 kB / 0.6394 GB, free: 6.496 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/1.032, allocations: 4 kB / 0.6394 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.188e-05/1.032, allocations: 4.094 kB / 0.6394 GB, free: 6.488 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009592/1.042, allocations: 3.403 MB / 0.6427 GB, free: 3.004 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.042, allocations: 4 kB / 0.6427 GB, free: 3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002854/1.045, allocations: 367.7 kB / 0.6431 GB, free: 2.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/1.045, allocations: 36.81 kB / 0.6431 GB, free: 2.602 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/1.045, allocations: 35.97 kB / 0.6432 GB, free: 2.566 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/1.047, allocations: 1.331 MB / 0.6445 GB, free: 1.102 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.047, allocations: 7.984 kB / 0.6445 GB, free: 1.094 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3937/1.441, allocations: 2.911 MB / 0.6473 GB, free: 137.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/1.442, allocations: 298.4 kB / 0.6476 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/1.442, allocations: 38.7 kB / 0.6476 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/1.443, allocations: 80.52 kB / 0.6477 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005939/1.444, allocations: 136.5 kB / 0.6478 GB, free: 137.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001672/1.444, allocations: 36.45 kB / 0.6479 GB, free: 137.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001005/1.445, allocations: 385.1 kB / 0.6482 GB, free: 137.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.445, allocations: 0 / 0.6482 GB, free: 137.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00266/1.448, allocations: 404.1 kB / 0.6486 GB, free: 137.1 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) * Number of clocked states: 0 () * 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.0006705/1.449, allocations: 213.2 kB / 0.6488 GB, free: 137 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008574/1.457, allocations: 2.529 MB / 0.6513 GB, free: 136.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.457, allocations: 3 kB / 0.6513 GB, free: 136.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003525/1.461, allocations: 1.195 MB / 0.6525 GB, free: 136.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/1.463, allocations: 159.4 kB / 0.6526 GB, free: 136.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/1.474, allocations: 3.528 MB / 0.6561 GB, free: 135.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/1.476, allocations: 1.219 MB / 0.6573 GB, free: 134.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009963/1.477, allocations: 77.72 kB / 0.6573 GB, free: 134.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/1.477, allocations: 2.562 kB / 0.6573 GB, free: 134.5 MB / 474.7 MB Notification: Performance of Templates: time 0.06082/1.538, allocations: 19.33 MB / 0.6762 GB, free: 133.3 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)