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.0007732/0.0007729, allocations: 91.69 kB / 16.65 MB, free: 6.59 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.000914/0.0009141, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.296/1.296, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1694/0.1694, allocations: 38.08 MB / 330.8 MB, free: 8.543 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004453, allocations: 9.531 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 59.16 MB / 459.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005872/0.1388, allocations: 4.678 MB / 464.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002887/0.1417, allocations: 1.609 MB / 466.2 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004168/0.1421, allocations: 23.88 kB / 466.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.1424, allocations: 59.55 kB / 466.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006023/0.143, allocations: 207.1 kB / 466.4 MB, free: 496 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006165/0.1436, allocations: 215.6 kB / 466.7 MB, free: 280 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007698/0.1444, allocations: 0.8187 MB / 467.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008403/0.1453, allocations: 0.532 MB / 468 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.1456, allocations: 191 kB / 468.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004316/0.146, allocations: 303 kB / 468.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.146, allocations: 16 kB / 468.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002626/0.1463, allocations: 147.7 kB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.1465, allocations: 199.5 kB / 468.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.1467, allocations: 232.6 kB / 469.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005151/0.1473, allocations: 0.5449 MB / 469.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1473, allocations: 0 / 469.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1473, allocations: 0 / 469.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1473, allocations: 0 / 469.6 MB, free: 13.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.001083/0.1484, allocations: 0.6609 MB / 470.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.1484, allocations: 8.031 kB / 470.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005207/0.1489, allocations: 80.33 kB / 470.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.1495, allocations: 391.2 kB / 470.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.1495, allocations: 29.38 kB / 470.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1496, allocations: 56.03 kB / 470.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/0.1504, allocations: 0.6248 MB / 471.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1505, allocations: 3.938 kB / 471.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.1505, allocations: 20 kB / 471.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.1506, allocations: 32.98 kB / 471.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000688/0.1513, allocations: 483.4 kB / 472 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00278/0.1541, allocations: 2.887 MB / 474.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.1545, allocations: 233 kB / 475.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.1547, allocations: 145.7 kB / 475.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.1548, allocations: 11.97 kB / 475.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1548, allocations: 38.56 kB / 475.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 4.168e-06/0.1548, allocations: 3.984 kB / 475.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00146/0.1563, allocations: 0.9631 MB / 476.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1563, allocations: 85.11 kB / 476.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1566, allocations: 320.4 kB / 476.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1566, allocations: 29.7 kB / 476.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1568, allocations: 275.2 kB / 476.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.448e-05/0.1569, allocations: 102.5 kB / 477 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.157, allocations: 49.69 kB / 477.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1571, allocations: 350.8 kB / 477.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.1573, allocations: 141 kB / 477.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.1576, allocations: 351.2 kB / 477.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005747/0.1582, allocations: 0.5286 MB / 478.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1582, allocations: 4 kB / 478.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007242/0.1589, allocations: 0.52 MB / 479 MB, free: 3.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.159, allocations: 8.906 kB / 479 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.159, allocations: 4 kB / 479 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.159, allocations: 16 kB / 479 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.1594, allocations: 115.8 kB / 479.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.1594, allocations: 19.92 kB / 479.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.1597, allocations: 23.98 kB / 479.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.1597, allocations: 24 kB / 479.2 MB, free: 3.062 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.000195/0.1599, allocations: 217.5 kB / 479.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/0.16, allocations: 31.62 kB / 479.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00056/0.1605, allocations: 365.6 kB / 479.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.1605, allocations: 4 kB / 479.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1606, allocations: 0 / 479.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1606, allocations: 0 / 479.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.1619, allocations: 0.8912 MB / 480.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1619, allocations: 4.094 kB / 480.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003076/0.1622, allocations: 63.91 kB / 480.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1622, allocations: 4 kB / 480.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.1622, allocations: 11.98 kB / 480.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.1622, allocations: 7.938 kB / 480.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1622, allocations: 0 / 480.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000757/0.163, allocations: 0.5847 MB / 481.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.1631, allocations: 108.7 kB / 481.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.1631, allocations: 8 kB / 481.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1633, allocations: 19.91 kB / 481.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.1634, allocations: 19.97 kB / 481.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.1634, allocations: 12 kB / 481.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1636, allocations: 223.1 kB / 481.7 MB, free: 384 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1636, allocations: 0 / 481.7 MB, free: 384 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004324/0.1641, allocations: 92 kB / 481.8 MB, free: 292 kB / 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 9.866e-05/0.1642, allocations: 107.2 kB / 481.9 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005327/0.1647, allocations: 368.6 kB / 482.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1647, allocations: 0 / 482.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.1649, allocations: 143.8 kB / 482.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.1654, allocations: 67.23 kB / 482.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.167, allocations: 1.243 MB / 483.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.1674, allocations: 0.8623 MB / 484.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003263/0.1678, allocations: 131.1 kB / 484.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.1679, allocations: 31.42 kB / 484.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1679, allocations: 3.938 kB / 484.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of Templates: time 0.007026/0.1749, allocations: 3.138 MB / 487.9 MB, free: 10.16 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