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/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="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/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001285, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008635/0.0008636, allocations: 82.75 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1581/0.1581, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.523e-05/2.523e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.0903, allocations: 56.32 MB / 474.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/0.4568, allocations: 110.5 MB / 0.5709 GB, free: 8.477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4571, allocations: 86.39 kB / 0.5709 GB, free: 8.434 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07325/0.5304, allocations: 24.51 MB / 0.5949 GB, free: 3.074 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.5304, allocations: 0 / 0.5949 GB, free: 3.074 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001076/0.5305, allocations: 27.98 kB / 0.5949 GB, free: 3.047 MB / 394.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.004356/0.5349, allocations: 1.485 MB / 0.5963 GB, free: 1.559 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5349, allocations: 8.031 kB / 0.5964 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007173/0.5357, allocations: 130.5 kB / 0.5965 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007947/0.5436, allocations: 2.492 MB / 0.5989 GB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.5438, allocations: 76.52 kB / 0.599 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005493/0.5443, allocations: 115 kB / 0.5991 GB, free: 15.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003438/0.5478, allocations: 1.751 MB / 0.6008 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.5478, allocations: 3.938 kB / 0.6008 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/0.548, allocations: 43.78 kB / 0.6009 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.83e-05/0.5481, allocations: 32.69 kB / 0.6009 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.5502, allocations: 1.097 MB / 0.602 GB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009809/0.56, allocations: 5.8 MB / 0.6076 GB, free: 8.121 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.5617, allocations: 1.249 MB / 0.6088 GB, free: 7.219 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.563, allocations: 0.9811 MB / 0.6098 GB, free: 6.582 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.909e-05/0.5631, allocations: 12.78 kB / 0.6098 GB, free: 6.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001841/0.565, allocations: 1.34 MB / 0.6111 GB, free: 5.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 3.527e-06/0.565, allocations: 0 / 0.6111 GB, free: 5.496 MB / 410.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.01798/0.583, allocations: 8.006 MB / 0.6189 GB, free: 14.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.5832, allocations: 204.9 kB / 0.6191 GB, free: 14.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.5844, allocations: 0.6409 MB / 0.6198 GB, free: 13.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002651/0.5846, allocations: 61.7 kB / 0.6198 GB, free: 13.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.5851, allocations: 488 kB / 0.6203 GB, free: 13.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005172/0.5856, allocations: 411 kB / 0.6207 GB, free: 12.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.5858, allocations: 28 kB / 0.6207 GB, free: 12.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.5859, allocations: 369.9 kB / 0.6211 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.5875, allocations: 0.9996 MB / 0.622 GB, free: 11.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.5891, allocations: 1.274 MB / 0.6233 GB, free: 9.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02533/0.6144, allocations: 8.631 MB / 0.6317 GB, free: 1.219 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.936e-06/0.6145, allocations: 0 / 0.6317 GB, free: 1.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01022/0.6247, allocations: 5.102 MB / 0.6367 GB, free: 12.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.01e-05/0.6249, allocations: 67.34 kB / 0.6367 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.6249, allocations: 8 kB / 0.6368 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01703/0.6419, allocations: 6.473 MB / 0.6431 GB, free: 5.523 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.6433, allocations: 175.7 kB / 0.6432 GB, free: 5.352 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03998/0.6834, allocations: 15.61 MB / 0.6585 GB, free: 5.598 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.6852, allocations: 99.84 kB / 0.6586 GB, free: 5.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005059/0.6857, allocations: 144 kB / 0.6587 GB, free: 5.359 MB / 458.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.0009589/0.6867, allocations: 259.1 kB / 0.659 GB, free: 5.086 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005572/0.6873, allocations: 110.7 kB / 0.6591 GB, free: 4.977 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01515/0.7025, allocations: 5.051 MB / 0.664 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.7026, allocations: 12 kB / 0.664 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.7026, allocations: 0 / 0.664 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.09e-05/0.7026, allocations: 3.984 kB / 0.664 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/0.7207, allocations: 6.904 MB / 0.6708 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/0.7207, allocations: 0 / 0.6708 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/0.7215, allocations: 115.9 kB / 0.6709 GB, free: 8.754 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02124/0.7428, allocations: 6.655 MB / 0.6774 GB, free: 2.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008016/0.7436, allocations: 219.8 kB / 0.6776 GB, free: 1.855 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04317/0.7868, allocations: 20.85 MB / 0.6979 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.7869, allocations: 0 / 0.6979 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02288/0.8098, allocations: 6.032 MB / 0.7038 GB, free: 6.238 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/0.8114, allocations: 411.6 kB / 0.7042 GB, free: 5.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000944/0.8124, allocations: 187.9 kB / 0.7044 GB, free: 5.633 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.814, allocations: 71.91 kB / 0.7045 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001146/0.8151, allocations: 188.7 kB / 0.7047 GB, free: 5.379 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004556/0.8156, allocations: 143.8 kB / 0.7048 GB, free: 5.238 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001425/0.8171, allocations: 0.4913 MB / 0.7053 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.126e-06/0.8171, allocations: 0 / 0.7053 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003924/0.821, allocations: 0.543 MB / 0.7058 GB, free: 4.207 MB / 0.4948 GB 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.0008027/0.8218, allocations: 248.4 kB / 0.706 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009849/0.8317, allocations: 2.999 MB / 0.709 GB, free: 0.9141 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.8318, allocations: 0 / 0.709 GB, free: 0.9141 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2866/1.118, allocations: 2.354 MB / 0.7113 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/1.12, allocations: 242.7 kB / 0.7115 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006715/1.126, allocations: 4.596 MB / 0.716 GB, free: 164.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009299/1.127, allocations: 1.247 MB / 0.7172 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0007212/1.128, allocations: 211 kB / 0.7174 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/1.128, allocations: 70.2 kB / 0.7175 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.704e-06/1.128, allocations: 4 kB / 0.7175 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.05245/1.181, allocations: 37.39 MB / 0.754 GB, free: 154.9 MB / 0.4948 GB 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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches