Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 102.5 kB / 16.51 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 194.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.04 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001276, allocations: 65.84 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 58.07 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.008248/0.122, allocations: 5.746 MB / 461.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.1246, allocations: 1.562 MB / 463.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003484/0.125, allocations: 31.81 kB / 463.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004434/0.1254, allocations: 107.3 kB / 463.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006456/0.1261, allocations: 306.7 kB / 463.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.1265, allocations: 139.8 kB / 464 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009088/0.1275, allocations: 1.06 MB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.1277, allocations: 131.5 kB / 465.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003734/0.1281, allocations: 262.8 kB / 465.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006133/0.1287, allocations: 458.7 kB / 465.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.89e-05/0.1288, allocations: 28 kB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1289, allocations: 32 kB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.1292, allocations: 215.4 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.1295, allocations: 262.7 kB / 466.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004984/0.13, allocations: 0.584 MB / 467.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.13, allocations: 4 kB / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.13, allocations: 0 / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.13, allocations: 0 / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001902/0.1319, allocations: 0.9479 MB / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.132, allocations: 16.02 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.1321, allocations: 56.28 kB / 468.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1331, allocations: 0.5877 MB / 468.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.1332, allocations: 28.66 kB / 468.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.1333, allocations: 39.94 kB / 468.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.1341, allocations: 0.5518 MB / 469.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1341, allocations: 4 kB / 469.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.1342, allocations: 16 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003043/0.1345, allocations: 88.52 kB / 469.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005411/0.135, allocations: 358.3 kB / 469.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.1378, allocations: 2.058 MB / 471.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008497/0.1387, allocations: 381.2 kB / 472.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005888/0.1393, allocations: 317.6 kB / 472.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.1394, allocations: 11.94 kB / 472.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.1394, allocations: 38.56 kB / 472.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.784e-06/0.1394, allocations: 3.938 kB / 472.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004554/0.144, allocations: 2.534 MB / 475.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.144, allocations: 85.11 kB / 475.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.1445, allocations: 381.6 kB / 475.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.1445, allocations: 37.7 kB / 475.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.1447, allocations: 244.2 kB / 475.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.1448, allocations: 142.1 kB / 475.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.145, allocations: 98.25 kB / 476 MB, free: 4.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1452, allocations: 354.7 kB / 476.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.1455, allocations: 253 kB / 476.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.146, allocations: 366.6 kB / 477 MB, free: 3.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007916/0.1468, allocations: 0.6157 MB / 477.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1468, allocations: 4 kB / 477.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001705/0.1485, allocations: 1.01 MB / 478.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1485, allocations: 12.03 kB / 478.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1486, allocations: 4 kB / 478.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.1496, allocations: 417.2 kB / 479 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1499, allocations: 87.89 kB / 479.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005139/0.155, allocations: 4.722 MB / 483.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.1555, allocations: 39.95 kB / 483.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.1555, allocations: 23.92 kB / 483.9 MB, free: 11.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002783/0.1558, allocations: 201.7 kB / 484.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.1559, allocations: 47.47 kB / 484.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.1573, allocations: 0.831 MB / 485 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1573, allocations: 7.938 kB / 485 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1573, allocations: 3.938 kB / 485 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1573, allocations: 7.984 kB / 485 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.1594, allocations: 1.406 MB / 486.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1594, allocations: 0 / 486.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.1596, allocations: 51.94 kB / 486.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.1608, allocations: 433.3 kB / 486.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.1608, allocations: 35.97 kB / 486.9 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005531/0.1664, allocations: 6.257 MB / 493.2 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.1664, allocations: 4.031 kB / 493.2 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.1682, allocations: 1.128 MB / 494.3 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.1684, allocations: 116.5 kB / 494.4 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.899e-05/0.1685, allocations: 35.92 kB / 494.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.1688, allocations: 39.88 kB / 494.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.1689, allocations: 31.94 kB / 494.5 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/0.169, allocations: 15.98 kB / 494.5 MB, free: 492 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.1693, allocations: 263.2 kB / 494.8 MB, free: 232 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1693, allocations: 0 / 494.8 MB, free: 232 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007212/0.1701, allocations: 163.9 kB / 495 MB, free: 68 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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,1],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]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000202/0.1703, allocations: 125.3 kB / 495.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.1719, allocations: 0.9079 MB / 496 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1719, allocations: 0 / 496 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.1734, allocations: 1.083 MB / 497.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/0.1741, allocations: 121.5 kB / 497.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/0.1769, allocations: 2.004 MB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.1774, allocations: 0.8781 MB / 0.4883 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.1777, allocations: 76.33 kB / 0.4884 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.1777, allocations: 31.44 kB / 0.4884 GB, free: 10.64 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1778, allocations: 3.938 kB / 0.4885 GB, free: 10.64 MB / 382.1 MB Notification: Performance of Templates: time 0.01313/0.1909, allocations: 7.363 MB / 0.4956 GB, free: 3.328 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches