Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009095/0.0009096, allocations: 93.27 kB / 16.3 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000907/0.0009071, allocations: 179 kB / 17.2 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1897/0.1897, allocations: 38.03 MB / 309.7 MB, free: 6.141 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006228/0.0006229, allocations: 16 kB / 376.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2933, allocations: 56.33 MB / 432.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.006999/0.3004, allocations: 8.847 MB / 441.7 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004327/0.3047, allocations: 2.808 MB / 444.5 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006505/0.3054, allocations: 55.62 kB / 444.5 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006809/0.3061, allocations: 298.3 kB / 444.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001403/0.3075, allocations: 0.6621 MB / 445.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008474/0.3084, allocations: 391.3 kB / 445.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008031/0.3092, allocations: 0.9395 MB / 446.8 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.3095, allocations: 275.2 kB / 447.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006782/0.3102, allocations: 0.619 MB / 447.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008343/0.3111, allocations: 0.8181 MB / 448.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.3112, allocations: 60 kB / 448.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.3114, allocations: 64 kB / 448.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003867/0.3118, allocations: 0.5183 MB / 449.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.312, allocations: 237.1 kB / 449.4 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007791/0.3128, allocations: 1.192 MB / 450.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3128, allocations: 0 / 450.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.889e-06/0.3128, allocations: 0 / 450.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.76e-05/0.3128, allocations: 0 / 450.6 MB, free: 1.043 MB / 318.1 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.003255/0.3161, allocations: 1.666 MB / 452.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3161, allocations: 8.031 kB / 452.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002278/0.3163, allocations: 130.5 kB / 452.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002216/0.3186, allocations: 1.105 MB / 453.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/0.3187, allocations: 69.98 kB / 453.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.3189, allocations: 103.9 kB / 453.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.3207, allocations: 1.313 MB / 455 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3208, allocations: 4 kB / 455 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.896e-05/0.3209, allocations: 35.98 kB / 455 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006292/0.3215, allocations: 205.6 kB / 455.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.3229, allocations: 0.9524 MB / 456.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006737/0.3297, allocations: 4.531 MB / 460.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.3311, allocations: 1.182 MB / 461.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.3312, allocations: 13.05 kB / 461.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.3325, allocations: 0.9448 MB / 462.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 2.615e-06/0.3325, allocations: 0 / 462.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=105): time 0.0114/0.3439, allocations: 6.758 MB / 469.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.3441, allocations: 208.8 kB / 469.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009679/0.3451, allocations: 0.7548 MB / 470.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.3452, allocations: 53.7 kB / 470.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004634/0.3457, allocations: 492.1 kB / 471.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.346, allocations: 379 kB / 471.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.919e-05/0.3461, allocations: 28 kB / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3463, allocations: 357.9 kB / 471.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000993/0.3473, allocations: 0.6715 MB / 472.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.3486, allocations: 0.9355 MB / 473.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004945/0.3535, allocations: 1.985 MB / 475.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.3535, allocations: 8 kB / 475.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004669/0.3582, allocations: 2.757 MB / 478.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/0.3583, allocations: 59.41 kB / 478.2 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.3583, allocations: 8 kB / 478.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002881/0.3612, allocations: 1.136 MB / 479.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.3618, allocations: 175.7 kB / 479.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.3737, allocations: 8.409 MB / 487.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.3748, allocations: 111.9 kB / 488.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.112e-05/0.3749, allocations: 52 kB / 488.1 MB, free: 10.22 MB / 366.1 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.0007832/0.3757, allocations: 443.3 kB / 488.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.3759, allocations: 106.7 kB / 488.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003816/0.3797, allocations: 2.345 MB / 491 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.3797, allocations: 8 kB / 491 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.3797, allocations: 11.95 kB / 491 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3797, allocations: 3.984 kB / 491 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005676/0.3854, allocations: 3.644 MB / 494.7 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3855, allocations: 0 / 494.7 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/0.386, allocations: 127.8 kB / 494.8 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00282/0.3888, allocations: 1.038 MB / 495.8 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.389, allocations: 75.94 kB / 495.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/0.4019, allocations: 15.1 MB / 0.499 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.402, allocations: 4 kB / 0.499 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005125/0.4071, allocations: 3.111 MB / 0.5021 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/0.4079, allocations: 323.7 kB / 0.5024 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.4081, allocations: 71.97 kB / 0.5024 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006663/0.4088, allocations: 99.86 kB / 0.5025 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/0.4091, allocations: 120.7 kB / 0.5026 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-05/0.4092, allocations: 47.92 kB / 0.5027 GB, free: 13.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007205/0.41, allocations: 0.5029 MB / 0.5032 GB, free: 13.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.41, allocations: 0 / 0.5032 GB, free: 13.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001473/0.4115, allocations: 436 kB / 0.5036 GB, free: 13.05 MB / 398.1 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.0002974/0.4118, allocations: 168.6 kB / 0.5038 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00412/0.4159, allocations: 2.274 MB / 0.506 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4159, allocations: 0 / 0.506 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003865/0.4198, allocations: 2.785 MB / 0.5087 GB, free: 7.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008917/0.4207, allocations: 240.1 kB / 0.5089 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006278/0.427, allocations: 4.874 MB / 0.5137 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008179/0.4278, allocations: 1.245 MB / 0.5149 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005708/0.4284, allocations: 209.3 kB / 0.5151 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.4285, allocations: 67.44 kB / 0.5152 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4286, allocations: 0 / 0.5152 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of Templates: time 0.2646/0.6931, allocations: 19.01 MB / 0.5337 GB, free: 77.61 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1) Environment - environmentSimulation: