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.001506/0.001506, allocations: 104.6 kB / 16.5 MB, free: 6.707 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.00177/0.00177, allocations: 190.5 kB / 17.43 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.503/1.503, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1745/0.1745, allocations: 38.04 MB / 329.3 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 65.61 kB / 398.1 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1209, allocations: 58.07 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.0068/0.1278, allocations: 5.053 MB / 461.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.1306, allocations: 1.632 MB / 462.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002602/0.1309, allocations: 27.81 kB / 462.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009835/0.1319, allocations: 344.9 kB / 463.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004872/0.1324, allocations: 211.1 kB / 463.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.133, allocations: 227.5 kB / 463.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007636/0.1338, allocations: 0.807 MB / 464.4 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004635/0.1343, allocations: 280.6 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002895/0.1346, allocations: 211 kB / 464.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.135, allocations: 307 kB / 465.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/0.1351, allocations: 27.94 kB / 465.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.1354, allocations: 147.7 kB / 465.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.1356, allocations: 215.5 kB / 465.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.1358, allocations: 222.9 kB / 465.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005686/0.1364, allocations: 0.5528 MB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1364, allocations: 3.938 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1364, allocations: 4 kB / 466.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1365, allocations: 0 / 466.4 MB, free: 14.27 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.001521/0.138, allocations: 0.7233 MB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.434e-05/0.1381, allocations: 8.031 kB / 467.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006451/0.1387, allocations: 88.31 kB / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.1394, allocations: 387.2 kB / 467.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.1394, allocations: 29.38 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.1396, allocations: 52.12 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009508/0.1405, allocations: 0.6287 MB / 468.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.1406, allocations: 7.938 kB / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.1407, allocations: 19.98 kB / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.1408, allocations: 28.98 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007867/0.1416, allocations: 483.4 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00313/0.1447, allocations: 2.887 MB / 471.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.1451, allocations: 225 kB / 471.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.1454, allocations: 153.7 kB / 472.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.1454, allocations: 7.984 kB / 472.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.1454, allocations: 34.56 kB / 472.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.096e-06/0.1454, allocations: 0 / 472.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001565/0.147, allocations: 0.963 MB / 473.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.1471, allocations: 85.23 kB / 473.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.1474, allocations: 320.4 kB / 473.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.1474, allocations: 33.7 kB / 473.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1476, allocations: 279.2 kB / 473.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.295e-05/0.1477, allocations: 98.56 kB / 473.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1479, allocations: 90.16 kB / 474 MB, free: 6.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.148, allocations: 354.7 kB / 474.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.1483, allocations: 145 kB / 474.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003712/0.1487, allocations: 343.2 kB / 474.8 MB, free: 5.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.1493, allocations: 0.5286 MB / 475.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1493, allocations: 4 kB / 475.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007969/0.1501, allocations: 0.5241 MB / 475.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1502, allocations: 11.94 kB / 475.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1502, allocations: 11.98 kB / 475.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1502, allocations: 8 kB / 475.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.1507, allocations: 120.5 kB / 476 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1507, allocations: 19.94 kB / 476 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.1509, allocations: 23.98 kB / 476 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.151, allocations: 27.98 kB / 476.1 MB, free: 3.953 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.0002526/0.1512, allocations: 213.5 kB / 476.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.1513, allocations: 31.62 kB / 476.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006427/0.152, allocations: 357.7 kB / 476.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.152, allocations: 8 kB / 476.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.152, allocations: 0 / 476.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.152, allocations: 3.984 kB / 476.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1534, allocations: 0.8873 MB / 477.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1534, allocations: 0 / 477.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.1538, allocations: 67.89 kB / 477.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1538, allocations: 12.03 kB / 477.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.1538, allocations: 8 kB / 477.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.1538, allocations: 7.938 kB / 477.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1538, allocations: 0 / 477.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008534/0.1547, allocations: 0.5886 MB / 478.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.915e-05/0.1548, allocations: 108.7 kB / 478.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.446e-05/0.1549, allocations: 12.03 kB / 478.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.1551, allocations: 11.94 kB / 478.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.1551, allocations: 19.97 kB / 478.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.1551, allocations: 8 kB / 478.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1554, allocations: 223 kB / 478.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1554, allocations: 0 / 478.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.1558, allocations: 96 kB / 478.7 MB, free: 1.176 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.0001382/0.156, allocations: 103.2 kB / 478.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.1566, allocations: 365.2 kB / 479.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1566, allocations: 4.062 kB / 479.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.1568, allocations: 147.8 kB / 479.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.1574, allocations: 65.08 kB / 479.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.1591, allocations: 1.163 MB / 480.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.1597, allocations: 0.8623 MB / 481.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003707/0.16, allocations: 135.1 kB / 481.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.1602, allocations: 31.44 kB / 481.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1602, allocations: 3.938 kB / 481.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of Templates: time 0.007545/0.1677, allocations: 3.169 MB / 484.7 MB, free: 11.1 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