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.00135/0.00135, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009868/0.0009869, allocations: 89.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1766/0.1766, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.949e-05/1.975e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.5046, allocations: 109.8 MB / 0.5632 GB, free: 1.082 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.505, allocations: 91.95 kB / 0.5633 GB, free: 0.9922 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.077/0.582, allocations: 24.2 MB / 0.5869 GB, free: 8.508 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.582, allocations: 0 / 0.5869 GB, free: 8.508 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.8e-05/0.5821, allocations: 20 kB / 0.5869 GB, free: 8.488 MB / 427.1 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.004081/0.5862, allocations: 1.488 MB / 0.5884 GB, free: 6.934 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.5863, allocations: 12.03 kB / 0.5884 GB, free: 6.922 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000541/0.5868, allocations: 134.5 kB / 0.5885 GB, free: 6.789 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007978/0.5948, allocations: 2.482 MB / 0.591 GB, free: 4.262 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.477e-05/0.595, allocations: 31.95 kB / 0.591 GB, free: 4.23 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004508/0.5954, allocations: 79.91 kB / 0.5911 GB, free: 4.152 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001869/0.5973, allocations: 1.042 MB / 0.5921 GB, free: 3.109 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.5999, allocations: 1.638 MB / 0.5937 GB, free: 1.43 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.6, allocations: 3.984 kB / 0.5937 GB, free: 1.426 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.6001, allocations: 11.98 kB / 0.5937 GB, free: 1.414 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-05/0.6002, allocations: 34 kB / 0.5937 GB, free: 1.379 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009923/0.6101, allocations: 5.636 MB / 0.5992 GB, free: 11.61 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.6118, allocations: 1.207 MB / 0.6004 GB, free: 10.36 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/0.6137, allocations: 1.124 MB / 0.6015 GB, free: 9.238 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.95e-05/0.6138, allocations: 16.78 kB / 0.6015 GB, free: 9.223 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00184/0.6157, allocations: 1.311 MB / 0.6028 GB, free: 7.883 MB / 443.1 MB Notification: Performance of pre-optimization done (n=101): time 3.105e-06/0.6157, allocations: 0 / 0.6028 GB, free: 7.883 MB / 443.1 MB Notification: Performance of matching and sorting (n=105): time 0.01697/0.6327, allocations: 6.922 MB / 0.6096 GB, free: 0.8828 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002037/0.633, allocations: 205.2 kB / 0.6098 GB, free: 0.6367 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.6342, allocations: 0.59 MB / 0.6103 GB, free: 40 kB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004847/0.6347, allocations: 29.7 kB / 0.6104 GB, free: 4 kB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005327/0.6352, allocations: 492 kB / 0.6108 GB, free: 15.52 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006373/0.6358, allocations: 406.9 kB / 0.6112 GB, free: 15.11 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-05/0.636, allocations: 4 kB / 0.6112 GB, free: 15.11 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.6361, allocations: 357.9 kB / 0.6116 GB, free: 14.75 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.6377, allocations: 0.9878 MB / 0.6125 GB, free: 13.77 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.6393, allocations: 1.248 MB / 0.6138 GB, free: 12.42 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02627/0.6656, allocations: 8.565 MB / 0.6221 GB, free: 3.812 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.6657, allocations: 0 / 0.6221 GB, free: 3.812 MB / 459.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01029/0.676, allocations: 4.927 MB / 0.6269 GB, free: 14.88 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.449e-05/0.6761, allocations: 63.39 kB / 0.627 GB, free: 14.8 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.6761, allocations: 8 kB / 0.627 GB, free: 14.79 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01501/0.6911, allocations: 6.258 MB / 0.6331 GB, free: 8.527 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009593/0.6922, allocations: 187.7 kB / 0.6333 GB, free: 8.344 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2706/0.9628, allocations: 14.71 MB / 0.6477 GB, free: 136.1 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.9642, allocations: 69.59 kB / 0.6477 GB, free: 136.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002627/0.9645, allocations: 149 kB / 0.6479 GB, free: 136.1 MB / 475.1 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 () * 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.0004498/0.9649, allocations: 215.4 kB / 0.6481 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.9652, allocations: 106 kB / 0.6482 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/0.9787, allocations: 4.915 MB / 0.653 GB, free: 135.8 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.9788, allocations: 12.14 kB / 0.653 GB, free: 135.8 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.9788, allocations: 3.406 kB / 0.653 GB, free: 135.8 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.51e-05/0.9788, allocations: 7.453 kB / 0.653 GB, free: 135.8 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01651/0.9954, allocations: 6.706 MB / 0.6595 GB, free: 135.4 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.9954, allocations: 0 / 0.6595 GB, free: 135.4 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007138/0.9961, allocations: 129.9 kB / 0.6597 GB, free: 135.4 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01813/1.014, allocations: 6.598 MB / 0.6661 GB, free: 135.3 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004991/1.015, allocations: 206.4 kB / 0.6663 GB, free: 135.3 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.035, allocations: 20.36 MB / 0.6862 GB, free: 125.7 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.435e-06/1.035, allocations: 3.281 kB / 0.6862 GB, free: 125.7 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01322/1.048, allocations: 5.918 MB / 0.692 GB, free: 123.6 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.05, allocations: 409.8 kB / 0.6924 GB, free: 123.3 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007391/1.051, allocations: 177.8 kB / 0.6925 GB, free: 123.1 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.052, allocations: 58.81 kB / 0.6926 GB, free: 123.1 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008308/1.052, allocations: 192.3 kB / 0.6928 GB, free: 123 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002872/1.053, allocations: 147 kB / 0.6929 GB, free: 122.9 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.000763/1.054, allocations: 453.4 kB / 0.6933 GB, free: 122.5 MB / 475.1 MB Notification: Performance of sort global known variables: time 7.12e-07/1.054, allocations: 0 / 0.6933 GB, free: 122.5 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.002621/1.056, allocations: 0.5059 MB / 0.6938 GB, free: 122 MB / 475.1 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) * 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.0005009/1.057, allocations: 225 kB / 0.6941 GB, free: 121.8 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.005433/1.062, allocations: 2.927 MB / 0.6969 GB, free: 119.2 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/1.062, allocations: 0 / 0.6969 GB, free: 119.2 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004251/1.066, allocations: 2.318 MB / 0.6992 GB, free: 117.1 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/1.068, allocations: 228.2 kB / 0.6994 GB, free: 116.9 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006712/1.075, allocations: 4.574 MB / 0.7039 GB, free: 112.8 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000901/1.076, allocations: 1.253 MB / 0.7051 GB, free: 111.6 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0008061/1.076, allocations: 215 kB / 0.7053 GB, free: 111.4 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/1.077, allocations: 71.42 kB / 0.7054 GB, free: 111.3 MB / 475.1 MB Notification: Performance of SimCode: time 1.252e-06/1.077, allocations: 0 / 0.7054 GB, free: 111.3 MB / 475.1 MB Notification: Performance of Templates: time 0.04885/1.126, allocations: 35.01 MB / 0.7395 GB, free: 76.34 MB / 475.1 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