Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001262/0.001262, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.413/1.413, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001592/0.001592, allocations: 122.3 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1679/0.1679, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.073e-05, allocations: 4 kB / 397.5 MB, free: 1.035 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2739, allocations: 53.22 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.6816, allocations: 104.7 MB / 0.5425 GB, free: 34.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.6818, allocations: 88.62 kB / 0.5425 GB, free: 34.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06396/0.7458, allocations: 24.46 MB / 0.5664 GB, free: 30 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.7459, allocations: 0 / 0.5664 GB, free: 30 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.455e-05/0.7459, allocations: 35.05 kB / 0.5665 GB, free: 29.98 MB / 378.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.002821/0.7488, allocations: 1.476 MB / 0.5679 GB, free: 29.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.7488, allocations: 7.812 kB / 0.5679 GB, free: 29.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.7491, allocations: 133.6 kB / 0.568 GB, free: 28.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006753/0.7559, allocations: 2.497 MB / 0.5705 GB, free: 27.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.319e-05/0.756, allocations: 74.31 kB / 0.5705 GB, free: 27.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002912/0.7563, allocations: 114.4 kB / 0.5707 GB, free: 27.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.7586, allocations: 1.752 MB / 0.5724 GB, free: 27.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.7586, allocations: 0 / 0.5724 GB, free: 27.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.7587, allocations: 45.12 kB / 0.5724 GB, free: 27.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.7588, allocations: 40.89 kB / 0.5724 GB, free: 27.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.7602, allocations: 1.094 MB / 0.5735 GB, free: 27.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007757/0.768, allocations: 5.8 MB / 0.5792 GB, free: 24.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.7694, allocations: 1.235 MB / 0.5804 GB, free: 24.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009833/0.7704, allocations: 0.9895 MB / 0.5814 GB, free: 24.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.534e-05/0.7705, allocations: 20.36 kB / 0.5814 GB, free: 24.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.7719, allocations: 1.331 MB / 0.5827 GB, free: 23.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=101): time 2.985e-06/0.7719, allocations: 4 kB / 0.5827 GB, free: 23.76 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: voltage2.theta Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=104): time 0.01545/0.7874, allocations: 8.007 MB / 0.5905 GB, free: 21.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.7875, allocations: 207.7 kB / 0.5907 GB, free: 20.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008773/0.7884, allocations: 0.646 MB / 0.5913 GB, free: 20.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002596/0.7887, allocations: 58.7 kB / 0.5914 GB, free: 20.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.789, allocations: 486.4 kB / 0.5918 GB, free: 20.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/0.7893, allocations: 410.5 kB / 0.5922 GB, free: 20.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/0.7894, allocations: 28.94 kB / 0.5923 GB, free: 20.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.7895, allocations: 366.2 kB / 0.5926 GB, free: 19.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.7907, allocations: 1.001 MB / 0.5936 GB, free: 19.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.7919, allocations: 1.271 MB / 0.5948 GB, free: 19.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02283/0.8148, allocations: 8.619 MB / 0.6032 GB, free: 12.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.8148, allocations: 0 / 0.6032 GB, free: 12.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008496/0.8233, allocations: 5.106 MB / 0.6082 GB, free: 8.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.385e-05/0.8234, allocations: 63.34 kB / 0.6083 GB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.8235, allocations: 12.3 kB / 0.6083 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0125/0.836, allocations: 6.484 MB / 0.6146 GB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.8368, allocations: 175.7 kB / 0.6148 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02468/0.8615, allocations: 15.6 MB / 0.63 GB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.8628, allocations: 95.91 kB / 0.6301 GB, free: 1.816 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000393/0.8632, allocations: 147.9 kB / 0.6303 GB, free: 1.672 MB / 394.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.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: 32 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 124 * 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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000758/0.864, allocations: 266.9 kB / 0.6305 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/0.8645, allocations: 106.8 kB / 0.6306 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/0.8775, allocations: 5.039 MB / 0.6356 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.8775, allocations: 12 kB / 0.6356 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.8776, allocations: 3.984 kB / 0.6356 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.777e-05/0.8776, allocations: 3.984 kB / 0.6356 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/0.8945, allocations: 6.908 MB / 0.6423 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.8945, allocations: 0 / 0.6423 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.8952, allocations: 127.8 kB / 0.6424 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01972/0.9149, allocations: 6.643 MB / 0.6489 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006164/0.9156, allocations: 215.8 kB / 0.6491 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02676/0.9424, allocations: 20.85 MB / 0.6695 GB, free: 8.648 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.9424, allocations: 0 / 0.6695 GB, free: 8.648 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.015/0.9574, allocations: 6.024 MB / 0.6754 GB, free: 2.566 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.9589, allocations: 415.6 kB / 0.6758 GB, free: 2.141 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007093/0.9596, allocations: 183.9 kB / 0.6759 GB, free: 1.961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.9607, allocations: 75.84 kB / 0.676 GB, free: 1.887 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008258/0.9615, allocations: 196.7 kB / 0.6762 GB, free: 1.695 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002808/0.9618, allocations: 140.2 kB / 0.6763 GB, free: 1.559 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008752/0.9627, allocations: 499.1 kB / 0.6768 GB, free: 1.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9627, allocations: 0 / 0.6768 GB, free: 1.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00248/0.9652, allocations: 0.539 MB / 0.6773 GB, free: 0.5312 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005496/0.9658, allocations: 237.1 kB / 0.6776 GB, free: 296 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006401/0.9722, allocations: 3.01 MB / 0.6805 GB, free: 13.24 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.9722, allocations: 0 / 0.6805 GB, free: 13.24 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004835/0.9771, allocations: 2.37 MB / 0.6828 GB, free: 10.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.9789, allocations: 235 kB / 0.683 GB, free: 10.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008427/0.9873, allocations: 4.603 MB / 0.6875 GB, free: 5.906 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.9887, allocations: 1.248 MB / 0.6888 GB, free: 4.625 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008992/0.9896, allocations: 205.4 kB / 0.689 GB, free: 4.422 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.9899, allocations: 79.36 kB / 0.689 GB, free: 4.344 MB / 458.7 MB Notification: Performance of SimCode: time 1.283e-06/0.9899, allocations: 0 / 0.689 GB, free: 4.344 MB / 458.7 MB Notification: Performance of Templates: time 0.3396/1.329, allocations: 37.39 MB / 0.7255 GB, free: 141.1 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)