Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_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.001273/0.001277, allocations: 110.2 kB / 17.75 MB, free: 5.352 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.001341/0.001341, allocations: 185.4 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1712/0.1712, allocations: 38.05 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.89 kB / 458.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2753, allocations: 58.05 MB / 0.5048 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.00728/0.2826, allocations: 8.731 MB / 0.5133 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.2856, allocations: 2.365 MB / 0.5156 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000301/0.2859, allocations: 29.94 kB / 0.5157 GB, free: 16 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007679/0.2867, allocations: 320 kB / 0.516 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.2881, allocations: 0.8298 MB / 0.5168 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.2889, allocations: 374.9 kB / 0.5171 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.2907, allocations: 1.891 MB / 0.519 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005177/0.2912, allocations: 384.7 kB / 0.5193 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.2923, allocations: 0.8238 MB / 0.5201 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.2937, allocations: 1.099 MB / 0.5212 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.2939, allocations: 117.6 kB / 0.5213 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.2943, allocations: 122.6 kB / 0.5214 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007112/0.295, allocations: 0.6165 MB / 0.522 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009036/0.2959, allocations: 0.6833 MB / 0.5227 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.298, allocations: 1.549 MB / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2981, allocations: 0 / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2981, allocations: 1.375 kB / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.406e-05/0.2981, allocations: 0 / 0.5242 GB, free: 12.42 MB / 398.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.005157/0.3033, allocations: 1.917 MB / 0.5261 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.3033, allocations: 9.312 kB / 0.5261 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.3036, allocations: 135.8 kB / 0.5262 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.3059, allocations: 1.178 MB / 0.5274 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.77e-05/0.306, allocations: 71.22 kB / 0.5275 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/0.3062, allocations: 104.4 kB / 0.5276 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.3082, allocations: 1.314 MB / 0.5288 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3082, allocations: 3.938 kB / 0.5288 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.3083, allocations: 37.25 kB / 0.5289 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000626/0.3089, allocations: 203.1 kB / 0.5291 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.3104, allocations: 0.9544 MB / 0.53 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006614/0.317, allocations: 4.507 MB / 0.5344 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3185, allocations: 1.175 MB / 0.5356 GB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009725/0.3195, allocations: 0.7258 MB / 0.5363 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.581e-05/0.3196, allocations: 13.8 kB / 0.5363 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00131/0.3209, allocations: 0.9477 MB / 0.5372 GB, free: 4.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=101): time 2.905e-06/0.3209, allocations: 0 / 0.5372 GB, free: 4.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.01156/0.3325, allocations: 6.641 MB / 0.5437 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3326, allocations: 204.8 kB / 0.5439 GB, free: 15.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008998/0.3335, allocations: 0.7549 MB / 0.5446 GB, free: 14.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.3337, allocations: 53.7 kB / 0.5447 GB, free: 14.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.334, allocations: 497.1 kB / 0.5451 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003231/0.3343, allocations: 396.8 kB / 0.5455 GB, free: 14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/0.3347, allocations: 251.6 kB / 0.5458 GB, free: 13.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3349, allocations: 369.9 kB / 0.5461 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009924/0.3359, allocations: 0.6715 MB / 0.5468 GB, free: 12.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.337, allocations: 0.9511 MB / 0.5477 GB, free: 11.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007092/0.3441, allocations: 3.539 MB / 0.5512 GB, free: 7.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.3441, allocations: 0 / 0.5512 GB, free: 7.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004819/0.349, allocations: 2.777 MB / 0.5539 GB, free: 5.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.599e-05/0.349, allocations: 63.39 kB / 0.5539 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.349, allocations: 8.406 kB / 0.5539 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003048/0.3521, allocations: 1.14 MB / 0.555 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006029/0.3527, allocations: 179.7 kB / 0.5552 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01256/0.3653, allocations: 8.723 MB / 0.5637 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.3664, allocations: 107.9 kB / 0.5638 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.3665, allocations: 48 kB / 0.5639 GB, free: 10.72 MB / 430.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.trafo.i1 = 0.0 $DER.line.i[1,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,ab.fault_pp.t0,$PRE.ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,trafo.tap_2_internal,trafo.tap_1_internal,$PRE.switch1.switch_1.open,$PRE.switch2.switch_1.open,relay2.y[1],$PRE.relay2.y[1],relay1.y[1],$PRE.relay1.y[1],ab.fault_pp.on,$PRE.ab.fault_pp.on,ab.first,$PRE.ab.first,ab.v_pos,$PRE.ab.v_pos,ab.t_zero,$PRE.ab.t_zero,switch2.switch_1.closed,switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_1.closed,switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * 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 (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 {(5,44,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008248/0.3674, allocations: 452.7 kB / 0.5643 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.3676, allocations: 111.3 kB / 0.5644 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004089/0.3717, allocations: 2.341 MB / 0.5667 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.3718, allocations: 7.922 kB / 0.5667 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.3718, allocations: 4 kB / 0.5667 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006086/0.3724, allocations: 316.3 kB / 0.567 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.3727, allocations: 71.95 kB / 0.5671 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.3734, allocations: 95.86 kB / 0.5672 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.3737, allocations: 108.8 kB / 0.5673 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006755/0.3805, allocations: 3.228 MB / 0.5704 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003869/0.3844, allocations: 2.957 MB / 0.5733 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001132/0.3855, allocations: 0.8588 MB / 0.5742 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008016/0.3864, allocations: 0.5145 MB / 0.5747 GB, free: 15.45 MB / 446.1 MB Notification: Performance of Backend: time 6.31e-07/0.3864, allocations: 0 / 0.5747 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004528/0.3909, allocations: 1.819 MB / 0.5764 GB, free: 13.59 MB / 446.1 MB Notification: Performance of SimCode: time 0.005739/0.3967, allocations: 4.316 MB / 0.5807 GB, free: 9.191 MB / 446.1 MB Notification: Performance of Templates: time 0.03391/0.4306, allocations: 21.75 MB / 0.6019 GB, free: 3.586 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)