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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001732/0.001732, 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.93/1.93, allocations: 194.2 MB / 208.4 MB, free: 6.715 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.002046/0.002047, allocations: 120.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1722/0.1722, allocations: 37.9 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.304e-05/5.307e-05, allocations: 4 kB / 397.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.426, allocations: 53.21 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4808/0.9068, allocations: 104.7 MB / 0.5425 GB, free: 28.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.9072, allocations: 93.53 kB / 0.5426 GB, free: 28.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06661/0.9738, allocations: 24.46 MB / 0.5665 GB, free: 24.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.9738, allocations: 0 / 0.5665 GB, free: 24.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.616e-05/0.9739, allocations: 27.19 kB / 0.5666 GB, free: 24.82 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.002934/0.9768, allocations: 1.487 MB / 0.568 GB, free: 23.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.9769, allocations: 7.75 kB / 0.568 GB, free: 23.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002074/0.9771, allocations: 141.8 kB / 0.5681 GB, free: 23.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.9774, allocations: 129.3 kB / 0.5683 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006555/0.984, allocations: 2.492 MB / 0.5707 GB, free: 22.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.881e-05/0.9841, allocations: 72.62 kB / 0.5708 GB, free: 22.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/0.9844, allocations: 113.9 kB / 0.5709 GB, free: 22.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.9869, allocations: 1.754 MB / 0.5726 GB, free: 22.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.9869, allocations: 0 / 0.5726 GB, free: 22.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.9871, allocations: 44.69 kB / 0.5726 GB, free: 22.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.841e-05/0.9871, allocations: 36.5 kB / 0.5727 GB, free: 22.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.9887, allocations: 1.101 MB / 0.5737 GB, free: 22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008152/0.9969, allocations: 5.794 MB / 0.5794 GB, free: 19.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.9983, allocations: 1.251 MB / 0.5806 GB, free: 19.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.9993, allocations: 0.9784 MB / 0.5816 GB, free: 19.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-05/0.9994, allocations: 12.41 kB / 0.5816 GB, free: 19.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/1.001, allocations: 1.336 MB / 0.5829 GB, free: 18.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=101): time 2.906e-06/1.001, allocations: 0 / 0.5829 GB, free: 18.65 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.01634/1.017, allocations: 8.013 MB / 0.5907 GB, free: 15.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/1.017, allocations: 203.5 kB / 0.5909 GB, free: 15.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/1.019, allocations: 0.648 MB / 0.5916 GB, free: 15.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003955/1.019, allocations: 55.77 kB / 0.5916 GB, free: 15.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003543/1.019, allocations: 488.7 kB / 0.5921 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003596/1.02, allocations: 414.8 kB / 0.5925 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/1.02, allocations: 31.59 kB / 0.5925 GB, free: 14.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.899e-05/1.02, allocations: 358.8 kB / 0.5928 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/1.021, allocations: 1.013 MB / 0.5938 GB, free: 14.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/1.022, allocations: 1.264 MB / 0.5951 GB, free: 14.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02296/1.045, allocations: 8.615 MB / 0.6035 GB, free: 7.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/1.045, allocations: 0 / 0.6035 GB, free: 7.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008579/1.054, allocations: 5.118 MB / 0.6085 GB, free: 3.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/1.054, allocations: 67.72 kB / 0.6085 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/1.054, allocations: 8 kB / 0.6085 GB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/1.068, allocations: 6.477 MB / 0.6149 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000884/1.069, allocations: 179.7 kB / 0.615 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02393/1.093, allocations: 15.6 MB / 0.6303 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/1.094, allocations: 91.91 kB / 0.6304 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002183/1.094, allocations: 148 kB / 0.6305 GB, free: 12.53 MB / 410.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.0005574/1.095, allocations: 271.9 kB / 0.6308 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/1.095, allocations: 102.8 kB / 0.6309 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/1.108, allocations: 5.043 MB / 0.6358 GB, free: 7.059 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/1.108, allocations: 12 kB / 0.6358 GB, free: 7.047 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.108, allocations: 0 / 0.6358 GB, free: 7.047 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.583e-05/1.108, allocations: 7.984 kB / 0.6358 GB, free: 7.039 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/1.124, allocations: 6.914 MB / 0.6426 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/1.124, allocations: 3.984 kB / 0.6426 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/1.125, allocations: 119.9 kB / 0.6427 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01975/1.145, allocations: 6.643 MB / 0.6492 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000652/1.145, allocations: 223.8 kB / 0.6494 GB, free: 9.047 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02638/1.172, allocations: 20.84 MB / 0.6697 GB, free: 3.539 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.172, allocations: 0 / 0.6697 GB, free: 3.539 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.186, allocations: 6.032 MB / 0.6756 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009803/1.187, allocations: 411.6 kB / 0.676 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003915/1.187, allocations: 183.9 kB / 0.6762 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007356/1.188, allocations: 75.91 kB / 0.6763 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008037/1.189, allocations: 188.7 kB / 0.6764 GB, free: 12.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002157/1.189, allocations: 143.9 kB / 0.6766 GB, free: 12.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007548/1.19, allocations: 0.4952 MB / 0.6771 GB, free: 11.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.19, allocations: 0 / 0.6771 GB, free: 11.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001961/1.192, allocations: 0.5273 MB / 0.6776 GB, free: 11.43 MB / 458.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.01375/1.206, allocations: 6.55 MB / 0.684 GB, free: 4.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005984/1.212, allocations: 3.002 MB / 0.6869 GB, free: 1.785 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.212, allocations: 0 / 0.6869 GB, free: 1.785 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004436/1.216, allocations: 2.367 MB / 0.6892 GB, free: 15.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/1.218, allocations: 239 kB / 0.6894 GB, free: 15.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008079/1.226, allocations: 5.03 MB / 0.6944 GB, free: 10.01 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000895/1.227, allocations: 1.256 MB / 0.6956 GB, free: 8.727 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006609/1.227, allocations: 205.4 kB / 0.6958 GB, free: 8.523 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/1.228, allocations: 415.9 kB / 0.6962 GB, free: 8.117 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/1.228, allocations: 0 / 0.6962 GB, free: 8.117 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3997/1.628, allocations: 48.18 MB / 0.7432 GB, free: 161.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/1.628, allocations: 188.8 kB / 0.7434 GB, free: 161.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.308/4.936, allocations: 0 / 0.7434 GB, free: 161.3 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)