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.001951/0.001951, allocations: 177.2 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.713/1.713, 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.000874/0.000874, allocations: 86.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2689/0.2689, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.0003641, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1117, allocations: 56.34 MB / 479.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01005/0.1218, allocations: 9.278 MB / 488.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005283/0.1271, allocations: 2.78 MB / 491.1 MB, free: 5.922 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.1286, allocations: 59.56 kB / 491.2 MB, free: 5.863 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.1298, allocations: 297.9 kB / 491.5 MB, free: 5.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002694/0.1325, allocations: 0.8555 MB / 492.3 MB, free: 4.711 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1338, allocations: 407.4 kB / 492.7 MB, free: 4.312 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002654/0.1365, allocations: 2.298 MB / 495 MB, free: 2.008 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005386/0.137, allocations: 279.2 kB / 495.3 MB, free: 1.723 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.1388, allocations: 0.7002 MB / 496 MB, free: 1.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.1409, allocations: 1.122 MB / 497.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004184/0.1413, allocations: 60 kB / 497.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005459/0.1419, allocations: 64 kB / 497.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000843/0.1427, allocations: 0.5766 MB / 497.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005831/0.1433, allocations: 237.1 kB / 498.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.1448, allocations: 1.188 MB / 499.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1448, allocations: 0 / 499.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.977e-06/0.1448, allocations: 0 / 499.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.202e-05/0.1449, allocations: 3.938 kB / 499.2 MB, free: 13.76 MB / 346.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.00459/0.1495, allocations: 1.674 MB / 0.4892 GB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1495, allocations: 8.031 kB / 0.4892 GB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005574/0.1501, allocations: 126.5 kB / 0.4893 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002686/0.1528, allocations: 1.109 MB / 0.4904 GB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.17e-05/0.1529, allocations: 73.92 kB / 0.4905 GB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002911/0.1532, allocations: 107.8 kB / 0.4906 GB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/0.1554, allocations: 1.321 MB / 0.4919 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1554, allocations: 4 kB / 0.4919 GB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.587e-05/0.1555, allocations: 32 kB / 0.4919 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006475/0.1562, allocations: 205.6 kB / 0.4921 GB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.1577, allocations: 0.9524 MB / 0.493 GB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006538/0.1642, allocations: 4.527 MB / 0.4974 GB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.1657, allocations: 1.181 MB / 0.4986 GB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009596/0.1666, allocations: 0.7352 MB / 0.4993 GB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.1667, allocations: 9 kB / 0.4993 GB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001283/0.168, allocations: 0.9418 MB / 0.5002 GB, free: 372 kB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 2.935e-06/0.168, allocations: 0 / 0.5002 GB, free: 372 kB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.0114/0.1794, allocations: 6.609 MB / 0.5067 GB, free: 9.324 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.1795, allocations: 208.8 kB / 0.5069 GB, free: 9.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009717/0.1805, allocations: 0.7471 MB / 0.5076 GB, free: 8.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.379e-05/0.1806, allocations: 57.7 kB / 0.5077 GB, free: 8.258 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.181, allocations: 484.1 kB / 0.5081 GB, free: 7.777 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003473/0.1814, allocations: 382.8 kB / 0.5085 GB, free: 7.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.1815, allocations: 32 kB / 0.5085 GB, free: 7.367 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1816, allocations: 361.9 kB / 0.5089 GB, free: 7.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.1827, allocations: 0.6676 MB / 0.5095 GB, free: 6.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.1839, allocations: 0.9395 MB / 0.5104 GB, free: 5.309 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005173/0.189, allocations: 1.993 MB / 0.5124 GB, free: 3.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1891, allocations: 0 / 0.5124 GB, free: 3.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004857/0.1939, allocations: 2.757 MB / 0.5151 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.194, allocations: 59.41 kB / 0.5151 GB, free: 432 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.194, allocations: 8 kB / 0.5151 GB, free: 424 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1754/0.3695, allocations: 1.132 MB / 0.5163 GB, free: 52.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006385/0.3701, allocations: 177.9 kB / 0.5164 GB, free: 52.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/0.3818, allocations: 8.156 MB / 0.5244 GB, free: 49.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3828, allocations: 115.1 kB / 0.5245 GB, free: 49.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.383, allocations: 53.53 kB / 0.5245 GB, free: 49.57 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.0007688/0.3838, allocations: 448.1 kB / 0.525 GB, free: 49.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.3839, allocations: 107.3 kB / 0.5251 GB, free: 49.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003913/0.3878, allocations: 2.341 MB / 0.5274 GB, free: 48.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.3879, allocations: 10.62 kB / 0.5274 GB, free: 48.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.3879, allocations: 9.094 kB / 0.5274 GB, free: 48.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.3879, allocations: 8.797 kB / 0.5274 GB, free: 48.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005154/0.3931, allocations: 3.631 MB / 0.5309 GB, free: 47.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3931, allocations: 4.938 kB / 0.5309 GB, free: 47.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.3936, allocations: 129.3 kB / 0.5311 GB, free: 47.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/0.3961, allocations: 1.035 MB / 0.5321 GB, free: 46.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.3963, allocations: 81.84 kB / 0.5322 GB, free: 46.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008993/0.4053, allocations: 14.9 MB / 0.5467 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4053, allocations: 7.938 kB / 0.5467 GB, free: 33.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/0.4093, allocations: 3.091 MB / 0.5497 GB, free: 29.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000497/0.4099, allocations: 320.9 kB / 0.55 GB, free: 29.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.4101, allocations: 67.97 kB / 0.5501 GB, free: 29.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000725/0.4108, allocations: 99.86 kB / 0.5502 GB, free: 29.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.4111, allocations: 116.9 kB / 0.5503 GB, free: 29.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.4112, allocations: 39.97 kB / 0.5504 GB, free: 29.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005399/0.4117, allocations: 0.5068 MB / 0.5508 GB, free: 28.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4117, allocations: 0 / 0.5508 GB, free: 28.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00119/0.4129, allocations: 432 kB / 0.5513 GB, free: 28.36 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.0002165/0.4131, allocations: 176.6 kB / 0.5514 GB, free: 28.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003659/0.4168, allocations: 2.271 MB / 0.5536 GB, free: 25.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4168, allocations: 0 / 0.5536 GB, free: 25.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003085/0.4199, allocations: 2.781 MB / 0.5564 GB, free: 22.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.421, allocations: 267.2 kB / 0.5566 GB, free: 22.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.4262, allocations: 4.973 MB / 0.5615 GB, free: 17.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.4268, allocations: 1.221 MB / 0.5627 GB, free: 16.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.427, allocations: 75.42 kB / 0.5627 GB, free: 16.23 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.427, allocations: 0 / 0.5627 GB, free: 16.23 MB / 362.7 MB Notification: Performance of Templates: time 0.0429/0.4699, allocations: 43.84 MB / 0.6055 GB, free: 4.34 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)