Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 114.4 kB / 17.69 MB, free: 5.309 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.001417/0.001417, allocations: 191 kB / 18.63 MB, free: 4.375 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.428/1.428, allocations: 222.9 MB / 242.3 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1769/0.1769, allocations: 38.04 MB / 330.5 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 64.22 kB / 400.3 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1187, allocations: 58.06 MB / 458.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006948/0.1257, allocations: 4.073 MB / 462.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.1273, allocations: 0.857 MB / 463.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002582/0.1276, allocations: 11.94 kB / 463.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.1279, allocations: 47.52 kB / 463.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005653/0.1285, allocations: 163 kB / 463.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.1287, allocations: 91.88 kB / 463.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006156/0.1294, allocations: 390.6 kB / 463.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1296, allocations: 122.2 kB / 464.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003668/0.13, allocations: 171.2 kB / 464.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.1305, allocations: 179.3 kB / 464.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.109e-05/0.1306, allocations: 20 kB / 464.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.839e-05/0.1307, allocations: 20 kB / 464.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.1308, allocations: 91.72 kB / 464.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.131, allocations: 139.2 kB / 464.7 MB, free: 1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.1313, allocations: 298.9 kB / 465 MB, free: 0.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1313, allocations: 0 / 465 MB, free: 0.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1314, allocations: 0 / 465 MB, free: 0.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1314, allocations: 0 / 465 MB, free: 0.707 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001216/0.1326, allocations: 0.5922 MB / 465.6 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1326, allocations: 11.89 kB / 465.6 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.679e-05/0.1327, allocations: 32.56 kB / 465.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006766/0.1334, allocations: 339 kB / 465.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.1334, allocations: 16.81 kB / 465.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.1336, allocations: 44.02 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.134, allocations: 290 kB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1341, allocations: 3.938 kB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.1341, allocations: 12 kB / 466.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1341, allocations: 11.88 kB / 466.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.1344, allocations: 187.8 kB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.1362, allocations: 1.272 MB / 467.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.1365, allocations: 127.8 kB / 467.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.069e-05/0.1366, allocations: 38.64 kB / 467.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.1367, allocations: 15.92 kB / 467.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1367, allocations: 34.55 kB / 468 MB, free: 13.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.532e-06/0.1367, allocations: 0 / 468 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009154/0.1376, allocations: 0.5195 MB / 468.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.1377, allocations: 110.8 kB / 468.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.1379, allocations: 238.6 kB / 468.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.138, allocations: 33.7 kB / 468.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1381, allocations: 199.5 kB / 469.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.1382, allocations: 39.44 kB / 469.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.1383, allocations: 45.7 kB / 469.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1384, allocations: 338.8 kB / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.1385, allocations: 35.98 kB / 469.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.1387, allocations: 134.7 kB / 469.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.139, allocations: 195.7 kB / 469.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.139, allocations: 0 / 469.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003991/0.1394, allocations: 233.9 kB / 470.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1394, allocations: 4 kB / 470.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1394, allocations: 4 kB / 470.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001181/0.1396, allocations: 24.84 kB / 470.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.14, allocations: 72.17 kB / 470.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.14, allocations: 11.94 kB / 470.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1401, allocations: 4 kB / 470.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.1401, allocations: 19.98 kB / 470.2 MB, free: 11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.1403, allocations: 149.7 kB / 470.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/0.1404, allocations: 19.72 kB / 470.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.1406, allocations: 143.3 kB / 470.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1407, allocations: 3.938 kB / 470.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1407, allocations: 8 kB / 470.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1407, allocations: 0 / 470.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.141, allocations: 285.5 kB / 470.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.141, allocations: 4.094 kB / 470.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.1412, allocations: 31.86 kB / 470.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1412, allocations: 0 / 470.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1412, allocations: 4 kB / 470.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1413, allocations: 3.938 kB / 470.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1413, allocations: 4 kB / 470.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/0.1416, allocations: 359.4 kB / 471.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.1417, allocations: 104.8 kB / 471.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.1418, allocations: 8 kB / 471.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.1419, allocations: 3.938 kB / 471.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/0.142, allocations: 11.92 kB / 471.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.142, allocations: 8 kB / 471.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.1422, allocations: 174 kB / 471.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1422, allocations: 0 / 471.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003694/0.1426, allocations: 44 kB / 471.5 MB, free: 9.562 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001044/0.1427, allocations: 103.2 kB / 471.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004265/0.1431, allocations: 214.4 kB / 471.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1432, allocations: 4.125 kB / 471.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.89e-05/0.1433, allocations: 51.92 kB / 471.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.1438, allocations: 51.64 kB / 471.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.1448, allocations: 0.597 MB / 472.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.1452, allocations: 0.7712 MB / 473.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.1453, allocations: 26.28 kB / 473.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.613e-05/0.1454, allocations: 23.44 kB / 473.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1454, allocations: 0 / 473.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of Templates: time 0.00595/0.1513, allocations: 2.196 MB / 475.6 MB, free: 5.469 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches