Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.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.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 114.9 kB / 17.69 MB, free: 5.309 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.001739/0.001739, allocations: 192 kB / 18.63 MB, free: 4.375 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.589/1.589, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.183/0.183, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.001435/0.001435, allocations: 60.47 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3308, allocations: 55.26 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.01064/0.3415, allocations: 6.585 MB / 438.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005133/0.3467, allocations: 2.147 MB / 440.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000591/0.3473, allocations: 19.88 kB / 440.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.3497, allocations: 0.6301 MB / 441.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001953/0.3517, allocations: 0.5444 MB / 442 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.3528, allocations: 375.2 kB / 442.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0016/0.3545, allocations: 1.209 MB / 443.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009818/0.3555, allocations: 0.5834 MB / 444.1 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007664/0.3563, allocations: 0.5137 MB / 444.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000981/0.3573, allocations: 0.662 MB / 445.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.3574, allocations: 92 kB / 445.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.3585, allocations: 0.5071 MB / 445.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000493/0.359, allocations: 474.9 kB / 446.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005861/0.3596, allocations: 0.5403 MB / 446.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.3611, allocations: 1.379 MB / 448.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3612, allocations: 0 / 448.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3612, allocations: 0 / 448.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.3612, allocations: 0 / 448.3 MB, free: 3.203 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003311/0.3645, allocations: 1.39 MB / 449.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.3646, allocations: 11.89 kB / 449.7 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.3659, allocations: 143.7 kB / 449.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.3673, allocations: 0.6396 MB / 450.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.861e-05/0.3674, allocations: 74.36 kB / 450.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/0.3677, allocations: 104.1 kB / 450.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.3706, allocations: 1.307 MB / 451.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.831e-05/0.3707, allocations: 0 / 451.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/0.3709, allocations: 39.98 kB / 452 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002427/0.3711, allocations: 61.97 kB / 452 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.3744, allocations: 1.183 MB / 453.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.3855, allocations: 4.637 MB / 457.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.3881, allocations: 1.281 MB / 459.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.3896, allocations: 0.6329 MB / 459.8 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.3897, allocations: 24.64 kB / 459.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002068/0.3918, allocations: 0.8908 MB / 460.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 5.42e-06/0.3919, allocations: 0 / 460.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.009294/0.4012, allocations: 3.581 MB / 464.3 MB, free: 2.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002091/0.4014, allocations: 238.6 kB / 464.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006954/0.4021, allocations: 0.4903 MB / 465 MB, free: 1.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-05/0.4022, allocations: 57.7 kB / 465 MB, free: 1.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.4025, allocations: 404 kB / 465.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003163/0.4029, allocations: 370.9 kB / 465.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000326/0.4032, allocations: 218.9 kB / 466 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.4034, allocations: 394.7 kB / 466.4 MB, free: 392 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008236/0.4042, allocations: 0.5187 MB / 466.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.4052, allocations: 0.7778 MB / 467.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.407, allocations: 1.407 MB / 469.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-06/0.4071, allocations: 15.88 kB / 469.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003784/0.4109, allocations: 2.055 MB / 471.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.139e-05/0.4109, allocations: 63.44 kB / 471.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002929/0.4139, allocations: 1.644 MB / 472.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.4157, allocations: 0.6527 MB / 473.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004444/0.4162, allocations: 139.7 kB / 473.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009622/0.4258, allocations: 6.48 MB / 480.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006535/0.4265, allocations: 59.89 kB / 480.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.4266, allocations: 48 kB / 480.2 MB, free: 2.125 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006754/0.4273, allocations: 426 kB / 480.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.4276, allocations: 87.05 kB / 480.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.4298, allocations: 1.427 MB / 482.2 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/0.4299, allocations: 28.05 kB / 482.2 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4299, allocations: 0 / 482.2 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.4299, allocations: 7.922 kB / 482.2 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.4344, allocations: 2.767 MB / 485 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.4344, allocations: 0 / 485 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4354, allocations: 227.8 kB / 485.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.4354, allocations: 4 kB / 485.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.191e-05/0.4355, allocations: 23.98 kB / 485.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-05/0.4355, allocations: 7.938 kB / 485.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4355, allocations: 4 kB / 485.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003191/0.4387, allocations: 2.286 MB / 487.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.439, allocations: 140.2 kB / 487.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.4392, allocations: 35.98 kB / 487.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.4396, allocations: 43.95 kB / 487.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.4399, allocations: 116.8 kB / 487.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-05/0.44, allocations: 32 kB / 487.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004166/0.4404, allocations: 346.8 kB / 488.2 MB, free: 9.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4404, allocations: 0 / 488.2 MB, free: 9.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001112/0.4415, allocations: 308 kB / 488.5 MB, free: 9.656 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$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,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003275/0.4419, allocations: 163.1 kB / 488.7 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003159/0.4451, allocations: 1.872 MB / 490.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4451, allocations: 8 kB / 490.6 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.4462, allocations: 0.9064 MB / 491.5 MB, free: 6.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.447, allocations: 140 kB / 491.6 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.451, allocations: 2.245 MB / 493.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008711/0.4519, allocations: 1.101 MB / 495 MB, free: 3.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005975/0.4525, allocations: 234.9 kB / 495.2 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.4528, allocations: 63.44 kB / 495.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of SimCode: time 1.403e-06/0.4528, allocations: 0 / 495.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of Templates: time 0.02502/0.4778, allocations: 13.63 MB / 0.4969 GB, free: 5.199 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)