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.001496/0.001496, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.001834/0.001835, allocations: 197.8 kB / 17.55 MB, free: 6.043 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.391/1.391, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1742/0.1742, allocations: 38.04 MB / 329.4 MB, free: 9.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.58 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1155, allocations: 58.05 MB / 456.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006808/0.1223, allocations: 5.757 MB / 462.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.125, allocations: 1.547 MB / 463.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004726/0.1255, allocations: 31.75 kB / 463.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.126, allocations: 111.3 kB / 463.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008131/0.1269, allocations: 306.7 kB / 464.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003983/0.1273, allocations: 139.8 kB / 464.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000683/0.128, allocations: 0.6932 MB / 464.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.1282, allocations: 156.1 kB / 465.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.1286, allocations: 310.7 kB / 465.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005937/0.1292, allocations: 454.7 kB / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.126e-05/0.1293, allocations: 52 kB / 465.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.774e-05/0.1294, allocations: 48 kB / 465.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.1297, allocations: 239.4 kB / 466.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.1299, allocations: 282.6 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005666/0.1305, allocations: 0.5997 MB / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1305, allocations: 0 / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1305, allocations: 0 / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.1305, allocations: 0 / 467 MB, free: 13.69 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.001841/0.1324, allocations: 0.9479 MB / 468 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1324, allocations: 11.89 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.1325, allocations: 56.22 kB / 468 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009747/0.1335, allocations: 0.5838 MB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.1336, allocations: 32.64 kB / 468.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.1337, allocations: 43.98 kB / 468.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.1345, allocations: 0.544 MB / 469.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1345, allocations: 4 kB / 469.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.1345, allocations: 15.98 kB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003019/0.1348, allocations: 84.53 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005376/0.1354, allocations: 358.3 kB / 469.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.1382, allocations: 2.07 MB / 471.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000861/0.1391, allocations: 389.2 kB / 472.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005674/0.1396, allocations: 309.5 kB / 472.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.705e-05/0.1397, allocations: 7.938 kB / 472.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.1397, allocations: 38.56 kB / 472.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.184e-06/0.1398, allocations: 0 / 472.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004632/0.1444, allocations: 2.542 MB / 475 MB, free: 5.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.1445, allocations: 85.09 kB / 475.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.1449, allocations: 381.5 kB / 475.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.1449, allocations: 29.7 kB / 475.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1451, allocations: 252.2 kB / 475.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1452, allocations: 138.1 kB / 475.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.1454, allocations: 98.28 kB / 476 MB, free: 4.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1455, allocations: 362.7 kB / 476.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.1459, allocations: 245 kB / 476.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.1463, allocations: 374.6 kB / 477 MB, free: 3.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.1471, allocations: 0.6196 MB / 477.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1471, allocations: 0 / 477.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001643/0.1487, allocations: 1.01 MB / 478.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.1488, allocations: 10.28 kB / 478.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1488, allocations: 4 kB / 478.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009862/0.1498, allocations: 413.5 kB / 479 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.1501, allocations: 87.83 kB / 479.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005217/0.1553, allocations: 5.139 MB / 484.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.1557, allocations: 40.02 kB / 484.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.1557, allocations: 19.98 kB / 484.3 MB, free: 11.53 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.0002487/0.156, allocations: 209.6 kB / 484.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.1561, allocations: 43.42 kB / 484.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.1575, allocations: 0.835 MB / 485.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1575, allocations: 4 kB / 485.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1575, allocations: 4 kB / 485.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1576, allocations: 3.984 kB / 485.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.1595, allocations: 1.41 MB / 486.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1596, allocations: 0 / 486.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.1597, allocations: 47.91 kB / 486.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.161, allocations: 441.3 kB / 487.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-05/0.1611, allocations: 35.91 kB / 487.3 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005392/0.1665, allocations: 6.71 MB / 494 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1665, allocations: 8.188 kB / 494 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.1683, allocations: 1.132 MB / 495.2 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.964e-05/0.1684, allocations: 108.6 kB / 495.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.076e-05/0.1685, allocations: 27.98 kB / 495.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.1688, allocations: 43.94 kB / 495.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.486e-05/0.1689, allocations: 39.88 kB / 495.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.169, allocations: 11.98 kB / 495.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002818/0.1693, allocations: 263.2 kB / 495.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1693, allocations: 0 / 495.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.1699, allocations: 163.9 kB / 495.8 MB, free: 15.24 MB / 382.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.0001603/0.1701, allocations: 132.1 kB / 495.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001754/0.1719, allocations: 0.9779 MB / 496.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1719, allocations: 0 / 496.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.1735, allocations: 1.086 MB / 498 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/0.1742, allocations: 128.2 kB / 498.1 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.1773, allocations: 1.999 MB / 0.4884 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.1779, allocations: 0.8858 MB / 0.4893 GB, free: 9.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002946/0.1782, allocations: 72.34 kB / 0.4893 GB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.962e-05/0.1783, allocations: 31.44 kB / 0.4894 GB, free: 9.734 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1783, allocations: 0 / 0.4894 GB, free: 9.734 MB / 382.1 MB Notification: Performance of Templates: time 0.01348/0.1918, allocations: 7.698 MB / 0.4969 GB, free: 2.094 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