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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002425/0.002425, allocations: 188.1 kB / 13.2 MB, free: 2.117 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.018/2.018, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001111/0.00111, allocations: 91.7 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3211/0.3211, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.532e-05, allocations: 7.984 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4942/0.6006, allocations: 110.5 MB / 0.57 GB, free: 9.059 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.601, allocations: 91.94 kB / 0.5701 GB, free: 8.969 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1231/0.724, allocations: 24.51 MB / 0.594 GB, free: 172 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7241, allocations: 4 kB / 0.594 GB, free: 168 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001278/0.7242, allocations: 27.94 kB / 0.5941 GB, free: 140 kB / 426.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.006827/0.7311, allocations: 1.488 MB / 0.5955 GB, free: 14.58 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.7312, allocations: 12.03 kB / 0.5955 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007683/0.732, allocations: 135.2 kB / 0.5957 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007295/0.7327, allocations: 130.5 kB / 0.5958 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/0.7452, allocations: 2.486 MB / 0.5982 GB, free: 11.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.7454, allocations: 81.94 kB / 0.5983 GB, free: 11.69 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006507/0.746, allocations: 119.9 kB / 0.5984 GB, free: 11.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004885/0.7509, allocations: 1.754 MB / 0.6001 GB, free: 9.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.751, allocations: 0 / 0.6001 GB, free: 9.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002166/0.7512, allocations: 36 kB / 0.6002 GB, free: 9.734 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.546e-05/0.7513, allocations: 33.98 kB / 0.6002 GB, free: 9.703 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003423/0.7548, allocations: 1.101 MB / 0.6013 GB, free: 8.598 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01732/0.7722, allocations: 5.799 MB / 0.6069 GB, free: 2.656 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003252/0.7755, allocations: 1.248 MB / 0.6081 GB, free: 1.367 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.7782, allocations: 0.9909 MB / 0.6091 GB, free: 380 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001947/0.7784, allocations: 16.77 kB / 0.6091 GB, free: 364 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00361/0.782, allocations: 1.329 MB / 0.6104 GB, free: 14.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 4.949e-06/0.7821, allocations: 0 / 0.6104 GB, free: 14.99 MB / 458.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.03294/0.8151, allocations: 8.01 MB / 0.6183 GB, free: 6.848 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/0.8153, allocations: 208.9 kB / 0.6185 GB, free: 6.602 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.8168, allocations: 0.6409 MB / 0.6191 GB, free: 5.957 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/0.8172, allocations: 57.64 kB / 0.6191 GB, free: 5.895 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/0.8177, allocations: 497.3 kB / 0.6196 GB, free: 5.406 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/0.8186, allocations: 415 kB / 0.62 GB, free: 4.996 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.8188, allocations: 32 kB / 0.62 GB, free: 4.965 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.819, allocations: 366.7 kB / 0.6204 GB, free: 4.598 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002641/0.8217, allocations: 1.004 MB / 0.6214 GB, free: 3.594 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/0.8248, allocations: 1.278 MB / 0.6226 GB, free: 2.223 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04311/0.868, allocations: 7.176 MB / 0.6296 GB, free: 10.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.868, allocations: 0 / 0.6296 GB, free: 10.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01775/0.8858, allocations: 5.049 MB / 0.6346 GB, free: 5.918 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/0.8859, allocations: 71.27 kB / 0.6346 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.886, allocations: 8 kB / 0.6346 GB, free: 5.828 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.341/1.227, allocations: 6.474 MB / 0.6409 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.228, allocations: 175.5 kB / 0.6411 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04412/1.272, allocations: 15.6 MB / 0.6564 GB, free: 132 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/1.274, allocations: 97.97 kB / 0.6564 GB, free: 132 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000478/1.275, allocations: 145.3 kB / 0.6566 GB, free: 132 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.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.0006102/1.275, allocations: 260 kB / 0.6568 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003928/1.276, allocations: 110.1 kB / 0.6569 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03289/1.309, allocations: 5.042 MB / 0.6619 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/1.309, allocations: 11.47 kB / 0.6619 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.309, allocations: 0 / 0.6619 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/1.309, allocations: 9.047 kB / 0.6619 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03288/1.342, allocations: 6.913 MB / 0.6686 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.702e-05/1.342, allocations: 0 / 0.6686 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/1.343, allocations: 123.5 kB / 0.6687 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04849/1.392, allocations: 6.641 MB / 0.6752 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008677/1.393, allocations: 222 kB / 0.6754 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05356/1.447, allocations: 20.85 MB / 0.6958 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.447, allocations: 2.438 kB / 0.6958 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02366/1.47, allocations: 6.03 MB / 0.7017 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/1.472, allocations: 415.6 kB / 0.7021 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007039/1.473, allocations: 183.9 kB / 0.7023 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/1.474, allocations: 75.62 kB / 0.7023 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000886/1.475, allocations: 193.6 kB / 0.7025 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002949/1.475, allocations: 139.9 kB / 0.7027 GB, free: 109.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008786/1.476, allocations: 0.4952 MB / 0.7031 GB, free: 108.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.476, allocations: 0 / 0.7031 GB, free: 108.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002692/1.479, allocations: 0.5284 MB / 0.7037 GB, free: 108.2 MB / 474.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.02253/1.501, allocations: 6.546 MB / 0.71 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009435/1.511, allocations: 2.998 MB / 0.713 GB, free: 98.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.511, allocations: 8.125 kB / 0.713 GB, free: 98.63 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007115/1.518, allocations: 2.355 MB / 0.7153 GB, free: 96.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/1.52, allocations: 247.2 kB / 0.7155 GB, free: 95.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/1.532, allocations: 5.119 MB / 0.7205 GB, free: 90.98 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009158/1.533, allocations: 1.249 MB / 0.7217 GB, free: 89.71 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/1.534, allocations: 419.3 kB / 0.7221 GB, free: 89.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.413e-06/1.534, allocations: 0 / 0.7221 GB, free: 89.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.08/5.614, allocations: 38.19 MB / 0.7594 GB, free: 51.17 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)