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.001896/0.001897, allocations: 172.5 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.781/2.781, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.001117/0.001117, allocations: 96.25 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.4295/0.4295, allocations: 38.07 MB / 357.6 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005512/0.0005513, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4578/0.4583, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2417/0.7001, allocations: 110.6 MB / 0.577 GB, free: 7.711 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004911/0.7007, allocations: 95.95 kB / 0.5771 GB, free: 7.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1292/0.8299, allocations: 24.44 MB / 0.601 GB, free: 14.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.83, allocations: 4 kB / 0.601 GB, free: 14.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001874/0.8302, allocations: 20 kB / 0.601 GB, free: 14.84 MB / 442.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.008892/0.8391, allocations: 1.706 MB / 0.6027 GB, free: 13.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.47e-05/0.8392, allocations: 8.031 kB / 0.6027 GB, free: 13.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.8404, allocations: 131.4 kB / 0.6028 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008825/0.8492, allocations: 1.84 MB / 0.6046 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/0.8495, allocations: 70 kB / 0.6047 GB, free: 10.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009331/0.8504, allocations: 119.9 kB / 0.6048 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006546/0.857, allocations: 1.785 MB / 0.6065 GB, free: 9.027 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-05/0.8571, allocations: 0 / 0.6065 GB, free: 9.027 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003848/0.8575, allocations: 39.94 kB / 0.6066 GB, free: 8.988 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.812e-05/0.8577, allocations: 37.98 kB / 0.6066 GB, free: 8.949 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003846/0.8615, allocations: 1.124 MB / 0.6077 GB, free: 7.828 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/0.8799, allocations: 5.788 MB / 0.6134 GB, free: 1.895 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003316/0.8833, allocations: 1.264 MB / 0.6146 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00251/0.8858, allocations: 0.9989 MB / 0.6156 GB, free: 15.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.886, allocations: 9 kB / 0.6156 GB, free: 15.58 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003549/0.8896, allocations: 1.359 MB / 0.6169 GB, free: 14.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 8.376e-06/0.8897, allocations: 0 / 0.6169 GB, free: 14.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=105): time 0.04051/0.9302, allocations: 9.131 MB / 0.6258 GB, free: 4.84 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002452/0.9305, allocations: 204.9 kB / 0.626 GB, free: 4.598 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.933, allocations: 0.743 MB / 0.6267 GB, free: 3.844 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005587/0.9336, allocations: 53.7 kB / 0.6268 GB, free: 3.785 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008496/0.9345, allocations: 480.2 kB / 0.6273 GB, free: 3.309 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001211/0.9357, allocations: 422.8 kB / 0.6277 GB, free: 2.891 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004068/0.9362, allocations: 32 kB / 0.6277 GB, free: 2.859 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003213/0.9365, allocations: 361.9 kB / 0.628 GB, free: 2.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/0.9398, allocations: 1.019 MB / 0.629 GB, free: 1.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0035/0.9433, allocations: 1.295 MB / 0.6303 GB, free: 96 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05359/0.9969, allocations: 10.85 MB / 0.6409 GB, free: 5.074 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.388e-05/0.997, allocations: 7.938 kB / 0.6409 GB, free: 5.066 MB / 474.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.3974/1.394, allocations: 5.139 MB / 0.6459 GB, free: 135 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/1.395, allocations: 61.7 kB / 0.646 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.545e-05/1.395, allocations: 7.656 kB / 0.646 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02713/1.422, allocations: 6.482 MB / 0.6523 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/1.423, allocations: 177.9 kB / 0.6525 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04633/1.47, allocations: 15.54 MB / 0.6677 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/1.472, allocations: 99.86 kB / 0.6678 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005295/1.472, allocations: 152.2 kB / 0.6679 GB, free: 132.1 MB / 474.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.lineF.i[1,1] = 0.0 $DER.lineF.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,$PRE.switch2.switch_1.open,$PRE.switch1.switch_1.open,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001796/1.474, allocations: 446.1 kB / 0.6683 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005894/1.475, allocations: 104.8 kB / 0.6684 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02214/1.497, allocations: 5.123 MB / 0.6734 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-05/1.497, allocations: 9.594 kB / 0.6734 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/1.497, allocations: 7.562 kB / 0.6734 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/1.497, allocations: 6.656 kB / 0.6734 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02675/1.524, allocations: 6.98 MB / 0.6803 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-05/1.524, allocations: 2.875 kB / 0.6803 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/1.525, allocations: 126.9 kB / 0.6804 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03333/1.558, allocations: 6.642 MB / 0.6869 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008307/1.559, allocations: 221.5 kB / 0.6871 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05319/1.613, allocations: 20.86 MB / 0.7075 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.613, allocations: 2.062 kB / 0.7075 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03548/1.648, allocations: 6.095 MB / 0.7134 GB, free: 103.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.65, allocations: 414.2 kB / 0.7138 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/1.651, allocations: 180.5 kB / 0.714 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.653, allocations: 79.84 kB / 0.7141 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005366/1.658, allocations: 193.6 kB / 0.7142 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000678/1.659, allocations: 148.6 kB / 0.7144 GB, free: 102.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001364/1.66, allocations: 0.4978 MB / 0.7149 GB, free: 102.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.66, allocations: 0 / 0.7149 GB, free: 102.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00456/1.665, allocations: 0.5273 MB / 0.7154 GB, free: 101.7 MB / 474.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 (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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * 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): 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.005164/1.67, allocations: 237 kB / 0.7156 GB, free: 101.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01482/1.685, allocations: 3.061 MB / 0.7186 GB, free: 98.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.685, allocations: 4.062 kB / 0.7186 GB, free: 98.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007864/1.693, allocations: 2.416 MB / 0.721 GB, free: 95.85 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008065/1.701, allocations: 252.1 kB / 0.7212 GB, free: 95.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/1.716, allocations: 5.806 MB / 0.7269 GB, free: 89.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/1.717, allocations: 1.229 MB / 0.7281 GB, free: 88.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004622/1.717, allocations: 71.44 kB / 0.7281 GB, free: 88.59 MB / 474.7 MB Notification: Performance of SimCode: time 2.064e-06/1.717, allocations: 4 kB / 0.7281 GB, free: 88.58 MB / 474.7 MB Notification: Performance of Templates: time 0.07415/1.791, allocations: 34.23 MB / 0.7616 GB, free: 54.36 MB / 474.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)