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.001395/0.001396, allocations: 180.9 kB / 16.39 MB, free: 5.766 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.553/1.553, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0009003/0.0009003, allocations: 96.12 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1759/0.1759, allocations: 38.06 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003058, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3152, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1407/0.456, allocations: 110.6 MB / 0.5771 GB, free: 7.781 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.4563, allocations: 95.89 kB / 0.5771 GB, free: 7.688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07226/0.5286, allocations: 24.5 MB / 0.6011 GB, free: 14.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5286, allocations: 0 / 0.6011 GB, free: 14.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.246e-05/0.5287, allocations: 27.94 kB / 0.6011 GB, free: 14.85 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.004775/0.5335, allocations: 1.717 MB / 0.6028 GB, free: 13.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.5335, allocations: 8.031 kB / 0.6028 GB, free: 13.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005835/0.5341, allocations: 138.5 kB / 0.6029 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00772/0.5418, allocations: 2.502 MB / 0.6054 GB, free: 10.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.542, allocations: 77.94 kB / 0.6054 GB, free: 10.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004457/0.5424, allocations: 123.8 kB / 0.6055 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002937/0.5454, allocations: 1.774 MB / 0.6073 GB, free: 8.352 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.5454, allocations: 3.938 kB / 0.6073 GB, free: 8.348 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.5456, allocations: 39.98 kB / 0.6073 GB, free: 8.309 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.5456, allocations: 30 kB / 0.6074 GB, free: 8.281 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.5475, allocations: 1.124 MB / 0.6085 GB, free: 7.152 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.5576, allocations: 5.79 MB / 0.6141 GB, free: 1.223 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.5594, allocations: 1.268 MB / 0.6153 GB, free: 15.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.374e-05/0.5595, allocations: 13.06 kB / 0.6154 GB, free: 15.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/0.5612, allocations: 1.348 MB / 0.6167 GB, free: 14.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 2.695e-06/0.5613, allocations: 0 / 0.6167 GB, free: 14.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=105): time 0.02747/0.5887, allocations: 9.232 MB / 0.6257 GB, free: 5.043 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/0.589, allocations: 204.9 kB / 0.6259 GB, free: 4.797 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/0.5908, allocations: 0.6525 MB / 0.6265 GB, free: 4.141 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004282/0.5912, allocations: 57.7 kB / 0.6266 GB, free: 4.078 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006575/0.5919, allocations: 484.1 kB / 0.627 GB, free: 3.598 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007904/0.5927, allocations: 418.9 kB / 0.6274 GB, free: 3.184 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.593, allocations: 28 kB / 0.6275 GB, free: 3.156 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.5932, allocations: 369.9 kB / 0.6278 GB, free: 2.789 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002418/0.5957, allocations: 1.019 MB / 0.6288 GB, free: 1.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002566/0.5983, allocations: 1.291 MB / 0.6301 GB, free: 388 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03417/0.6325, allocations: 8.609 MB / 0.6385 GB, free: 7.711 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.6325, allocations: 4 kB / 0.6385 GB, free: 7.707 MB / 474.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01003/0.6426, allocations: 5.141 MB / 0.6435 GB, free: 2.539 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.475e-05/0.6427, allocations: 63.41 kB / 0.6436 GB, free: 2.465 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.6427, allocations: 7.953 kB / 0.6436 GB, free: 2.457 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2625/0.9052, allocations: 6.477 MB / 0.6499 GB, free: 135.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008028/0.9061, allocations: 177.6 kB / 0.6501 GB, free: 135.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02765/0.9338, allocations: 16.48 MB / 0.6662 GB, free: 132.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.9352, allocations: 95.19 kB / 0.6662 GB, free: 132.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004166/0.9356, allocations: 156.6 kB / 0.6664 GB, free: 132.8 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: 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,$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 () * 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.001198/0.9368, allocations: 438 kB / 0.6668 GB, free: 132.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003923/0.9373, allocations: 108.5 kB / 0.6669 GB, free: 132.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/0.949, allocations: 5.082 MB / 0.6719 GB, free: 131.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.9491, allocations: 13.69 kB / 0.6719 GB, free: 131.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.9491, allocations: 6.75 kB / 0.6719 GB, free: 131.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.24e-05/0.9491, allocations: 4.812 kB / 0.6719 GB, free: 131.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01662/0.9658, allocations: 6.95 MB / 0.6787 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.9658, allocations: 3.281 kB / 0.6787 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006684/0.9665, allocations: 121.4 kB / 0.6788 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01754/0.9841, allocations: 6.655 MB / 0.6853 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005131/0.9846, allocations: 219.7 kB / 0.6855 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02274/1.007, allocations: 21.97 MB / 0.707 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.007, allocations: 3.984 kB / 0.707 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.02, allocations: 6.091 MB / 0.7129 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/1.022, allocations: 411.4 kB / 0.7133 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008325/1.023, allocations: 183.9 kB / 0.7135 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.024, allocations: 75.89 kB / 0.7136 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008156/1.025, allocations: 188.7 kB / 0.7137 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002797/1.025, allocations: 144.7 kB / 0.7139 GB, free: 103.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000703/1.026, allocations: 0.5026 MB / 0.7144 GB, free: 102.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.026, allocations: 0 / 0.7144 GB, free: 102.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002575/1.028, allocations: 0.5326 MB / 0.7149 GB, free: 102.1 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.0005154/1.029, allocations: 233.1 kB / 0.7151 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005534/1.034, allocations: 3.065 MB / 0.7181 GB, free: 98.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.034, allocations: 0 / 0.7181 GB, free: 98.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004125/1.039, allocations: 2.418 MB / 0.7205 GB, free: 96.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/1.04, allocations: 243.3 kB / 0.7207 GB, free: 96.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007083/1.047, allocations: 5.746 MB / 0.7263 GB, free: 90.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007599/1.048, allocations: 1.257 MB / 0.7275 GB, free: 89.22 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006893/1.048, allocations: 207.3 kB / 0.7277 GB, free: 89.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/1.049, allocations: 71.44 kB / 0.7278 GB, free: 88.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.302e-06/1.049, allocations: 0 / 0.7278 GB, free: 88.96 MB / 474.7 MB Notification: Performance of Templates: time 0.05144/1.1, allocations: 37.03 MB / 0.764 GB, free: 51.98 MB / 474.7 MB 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