Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 105.4 kB / 16.62 MB, free: 6.809 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.001748/0.001748, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 329.4 MB, free: 8.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 67.03 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 58.05 MB / 456.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006616/0.1114, allocations: 5.072 MB / 461.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.1144, allocations: 1.613 MB / 463 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.1148, allocations: 27.81 kB / 463.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1159, allocations: 346.8 kB / 463.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005343/0.1164, allocations: 203.1 kB / 463.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.1171, allocations: 223.6 kB / 463.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006274/0.1177, allocations: 0.5417 MB / 464.4 MB, free: 388 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005032/0.1182, allocations: 301.1 kB / 464.6 MB, free: 88 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004358/0.1187, allocations: 235.1 kB / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004764/0.1192, allocations: 323 kB / 465.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.1192, allocations: 32 kB / 465.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003117/0.1196, allocations: 131.8 kB / 465.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.1198, allocations: 231.3 kB / 465.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.1201, allocations: 238.8 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005906/0.1207, allocations: 0.5607 MB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1207, allocations: 0 / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1207, allocations: 0 / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1207, allocations: 0 / 466.4 MB, free: 14.36 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001263/0.122, allocations: 0.7388 MB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.122, allocations: 15.83 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005509/0.1226, allocations: 80.33 kB / 467.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.1231, allocations: 391.2 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.1232, allocations: 29.38 kB / 467.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1233, allocations: 52.11 kB / 467.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009137/0.1242, allocations: 0.6248 MB / 468.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1243, allocations: 3.984 kB / 468.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.1243, allocations: 20 kB / 468.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000119/0.1244, allocations: 32.98 kB / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008352/0.1253, allocations: 487.4 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003543/0.1288, allocations: 2.884 MB / 471.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.1292, allocations: 229 kB / 471.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.1294, allocations: 145.7 kB / 472.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.1295, allocations: 7.984 kB / 472.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.1295, allocations: 42.55 kB / 472.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.1295, allocations: 0 / 472.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001566/0.1311, allocations: 0.963 MB / 473.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.1312, allocations: 85.23 kB / 473.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.1315, allocations: 320.4 kB / 473.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.1315, allocations: 29.7 kB / 473.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.1317, allocations: 275.2 kB / 473.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.1318, allocations: 106.5 kB / 473.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.1319, allocations: 94.09 kB / 474 MB, free: 6.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1321, allocations: 350.7 kB / 474.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.1323, allocations: 145 kB / 474.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.1327, allocations: 343.2 kB / 474.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.1333, allocations: 0.5247 MB / 475.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1334, allocations: 0 / 475.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007791/0.1342, allocations: 0.5319 MB / 475.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.1342, allocations: 8 kB / 475.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.1342, allocations: 7.938 kB / 475.9 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.1342, allocations: 16.69 kB / 475.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.1346, allocations: 119.8 kB / 476 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.1347, allocations: 16 kB / 476 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.1349, allocations: 23.98 kB / 476 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.1349, allocations: 20 kB / 476.1 MB, free: 4.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002228/0.1352, allocations: 225.5 kB / 476.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.1352, allocations: 27.62 kB / 476.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006054/0.1358, allocations: 365.7 kB / 476.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1359, allocations: 4 kB / 476.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1359, allocations: 4 kB / 476.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1359, allocations: 3.984 kB / 476.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.1372, allocations: 0.8833 MB / 477.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1372, allocations: 4 kB / 477.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.1375, allocations: 67.98 kB / 477.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.1375, allocations: 4 kB / 477.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.1376, allocations: 8 kB / 477.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.1376, allocations: 7.938 kB / 477.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1376, allocations: 0 / 477.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007482/0.1383, allocations: 0.5847 MB / 478.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.1384, allocations: 108.7 kB / 478.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.1385, allocations: 8 kB / 478.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.1387, allocations: 15.97 kB / 478.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.1387, allocations: 15.97 kB / 478.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.1388, allocations: 12 kB / 478.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002033/0.139, allocations: 227 kB / 478.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.139, allocations: 0 / 478.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.1394, allocations: 96 kB / 478.7 MB, free: 1.246 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0001199/0.1396, allocations: 103.2 kB / 478.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006174/0.1402, allocations: 401.1 kB / 479.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1402, allocations: 4.125 kB / 479.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.1404, allocations: 147.8 kB / 479.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.1409, allocations: 71.25 kB / 479.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.1426, allocations: 1.177 MB / 480.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.1431, allocations: 0.8543 MB / 481.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.1434, allocations: 135.1 kB / 481.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.605e-05/0.1435, allocations: 35.44 kB / 481.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1435, allocations: 0 / 481.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Templates: time 0.007031/0.1506, allocations: 3.31 MB / 484.9 MB, free: 10.98 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches