Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.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.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002259/0.002265, allocations: 191.3 kB / 15.77 MB, free: 5.988 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.063/2.063, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001192/0.001191, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2718/0.2718, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004539/0.0004542, allocations: 11.98 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.146, allocations: 56.32 MB / 479 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01453/0.1606, allocations: 8.852 MB / 487.9 MB, free: 9.168 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007324/0.1679, allocations: 2.804 MB / 490.7 MB, free: 6.355 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.1693, allocations: 55.62 kB / 490.7 MB, free: 6.301 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1707, allocations: 298.3 kB / 491 MB, free: 6.008 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003007/0.1737, allocations: 0.666 MB / 491.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.1754, allocations: 399.2 kB / 492.1 MB, free: 4.949 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00228/0.1778, allocations: 0.9317 MB / 493 MB, free: 4.016 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006432/0.1785, allocations: 275.2 kB / 493.3 MB, free: 3.734 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.1802, allocations: 0.6229 MB / 493.9 MB, free: 3.109 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.1822, allocations: 0.8181 MB / 494.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004151/0.1827, allocations: 60 kB / 494.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004467/0.1832, allocations: 64 kB / 494.8 MB, free: 2.168 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008645/0.184, allocations: 0.5144 MB / 495.4 MB, free: 1.652 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004938/0.1845, allocations: 237.1 kB / 495.6 MB, free: 1.414 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002133/0.1867, allocations: 1.188 MB / 496.8 MB, free: 228 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1868, allocations: 0 / 496.8 MB, free: 228 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1868, allocations: 0 / 496.8 MB, free: 228 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.371e-05/0.1868, allocations: 0 / 496.8 MB, free: 228 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.006452/0.1933, allocations: 1.674 MB / 498.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1934, allocations: 8.031 kB / 498.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005978/0.194, allocations: 126.5 kB / 498.6 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004232/0.1982, allocations: 1.105 MB / 499.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.1984, allocations: 73.94 kB / 499.8 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000442/0.1989, allocations: 107.8 kB / 499.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00338/0.2023, allocations: 1.313 MB / 0.4894 GB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.2023, allocations: 3.984 kB / 0.4894 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/0.2025, allocations: 31.98 kB / 0.4895 GB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001298/0.2038, allocations: 209.6 kB / 0.4897 GB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.2067, allocations: 0.9524 MB / 0.4906 GB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01221/0.219, allocations: 4.523 MB / 0.495 GB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.2218, allocations: 1.181 MB / 0.4962 GB, free: 4.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.2219, allocations: 13.05 kB / 0.4962 GB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002318/0.2243, allocations: 0.9418 MB / 0.4971 GB, free: 3.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 4.698e-06/0.2243, allocations: 4 kB / 0.4971 GB, free: 3.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.02066/0.245, allocations: 6.761 MB / 0.5037 GB, free: 12.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002008/0.2452, allocations: 208.9 kB / 0.5039 GB, free: 12.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.2467, allocations: 0.7587 MB / 0.5046 GB, free: 11.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002622/0.247, allocations: 53.7 kB / 0.5047 GB, free: 11.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.2475, allocations: 494.6 kB / 0.5052 GB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.2481, allocations: 378.9 kB / 0.5055 GB, free: 10.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.2483, allocations: 28 kB / 0.5056 GB, free: 10.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.2485, allocations: 374.8 kB / 0.5059 GB, free: 9.996 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/0.2503, allocations: 0.6637 MB / 0.5066 GB, free: 9.332 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.2524, allocations: 0.9395 MB / 0.5075 GB, free: 8.301 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009197/0.2617, allocations: 1.969 MB / 0.5094 GB, free: 6.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.2617, allocations: 0 / 0.5094 GB, free: 6.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008752/0.2705, allocations: 2.707 MB / 0.512 GB, free: 3.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.937e-05/0.2706, allocations: 63.41 kB / 0.5121 GB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.2707, allocations: 8 kB / 0.5121 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005692/0.2764, allocations: 1.136 MB / 0.5132 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.2776, allocations: 179.7 kB / 0.5134 GB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3232/0.6009, allocations: 8.399 MB / 0.5216 GB, free: 49.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.6027, allocations: 109 kB / 0.5217 GB, free: 49.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.603, allocations: 54.44 kB / 0.5218 GB, free: 49.64 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.line.i[1,1] = 0.0 $DER.line.i[2,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * 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 {(5,88.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.6041, allocations: 437.5 kB / 0.5222 GB, free: 49.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.6044, allocations: 102.8 kB / 0.5223 GB, free: 49.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007519/0.612, allocations: 2.348 MB / 0.5246 GB, free: 48.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/0.6121, allocations: 10.25 kB / 0.5246 GB, free: 48.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.786e-05/0.6121, allocations: 5.719 kB / 0.5246 GB, free: 48.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/0.6121, allocations: 6.859 kB / 0.5246 GB, free: 48.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.6232, allocations: 3.638 MB / 0.5281 GB, free: 47.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.866e-05/0.6233, allocations: 1.062 kB / 0.5281 GB, free: 47.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.6244, allocations: 122.8 kB / 0.5283 GB, free: 47.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005203/0.6297, allocations: 1.038 MB / 0.5293 GB, free: 46.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000373/0.6301, allocations: 78.2 kB / 0.5293 GB, free: 46.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01695/0.6471, allocations: 15.11 MB / 0.5441 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.6471, allocations: 4 kB / 0.5441 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008038/0.6552, allocations: 3.121 MB / 0.5472 GB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009554/0.6562, allocations: 315.1 kB / 0.5475 GB, free: 31.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003576/0.6566, allocations: 79.14 kB / 0.5475 GB, free: 31.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.6579, allocations: 91.86 kB / 0.5476 GB, free: 31.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005159/0.6585, allocations: 116.8 kB / 0.5477 GB, free: 31.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.6586, allocations: 43.95 kB / 0.5478 GB, free: 31.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008437/0.6595, allocations: 0.5029 MB / 0.5483 GB, free: 30.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6595, allocations: 0 / 0.5483 GB, free: 30.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00196/0.6614, allocations: 440 kB / 0.5487 GB, free: 30.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00036/0.6618, allocations: 168.6 kB / 0.5488 GB, free: 30.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006748/0.6686, allocations: 2.269 MB / 0.5511 GB, free: 28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.6686, allocations: 0 / 0.5511 GB, free: 28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005996/0.6747, allocations: 2.777 MB / 0.5538 GB, free: 24.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.6764, allocations: 241.6 kB / 0.554 GB, free: 24.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009704/0.6862, allocations: 4.964 MB / 0.5588 GB, free: 19.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008711/0.6871, allocations: 1.245 MB / 0.5601 GB, free: 18.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.6875, allocations: 79.42 kB / 0.5601 GB, free: 18.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6875, allocations: 0 / 0.5601 GB, free: 18.38 MB / 362.7 MB Notification: Performance of Templates: time 0.06823/0.7558, allocations: 41.62 MB / 0.6008 GB, free: 8.691 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)