Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001875/0.001875, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.363/1.363, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1725/0.1725, allocations: 38.04 MB / 330.4 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002482/0.002482, allocations: 66.72 kB / 399.5 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1347, allocations: 58.07 MB / 457.5 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008715/0.1434, allocations: 5.433 MB / 463 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002602/0.1461, allocations: 1.11 MB / 464.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004628/0.1466, allocations: 19.88 kB / 464.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.147, allocations: 83.22 kB / 464.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001233/0.1483, allocations: 294.3 kB / 464.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.1488, allocations: 139.8 kB / 464.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1499, allocations: 0.7007 MB / 465.3 MB, free: 308 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004039/0.1504, allocations: 172.7 kB / 465.5 MB, free: 128 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006422/0.151, allocations: 302.7 kB / 465.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007066/0.1517, allocations: 334.8 kB / 466.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.446e-05/0.1518, allocations: 32 kB / 466.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.152, allocations: 36 kB / 466.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.1522, allocations: 155.5 kB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.1525, allocations: 242.7 kB / 466.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006115/0.1532, allocations: 482.2 kB / 467 MB, free: 14.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1532, allocations: 3.984 kB / 467 MB, free: 14.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1532, allocations: 4 kB / 467 MB, free: 14.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1532, allocations: 0 / 467 MB, free: 14.56 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001668/0.1549, allocations: 0.7852 MB / 467.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.155, allocations: 12.03 kB / 467.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.1551, allocations: 56.28 kB / 467.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008723/0.156, allocations: 432.1 kB / 468.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.156, allocations: 25 kB / 468.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.633e-05/0.1561, allocations: 39.98 kB / 468.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00089/0.157, allocations: 459.5 kB / 468.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.1571, allocations: 11.94 kB / 468.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.1571, allocations: 16 kB / 468.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.1572, allocations: 8 kB / 468.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007027/0.1579, allocations: 308.7 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.1607, allocations: 1.767 MB / 470.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.161, allocations: 147.6 kB / 471.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1612, allocations: 62.67 kB / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1612, allocations: 0 / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.1613, allocations: 38.5 kB / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.873e-06/0.1613, allocations: 0 / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001375/0.1627, allocations: 0.596 MB / 471.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.1628, allocations: 114.8 kB / 471.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.1633, allocations: 373.5 kB / 472.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.1633, allocations: 29.7 kB / 472.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/0.1636, allocations: 279.4 kB / 472.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.1637, allocations: 55.19 kB / 472.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.1638, allocations: 61.61 kB / 472.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.164, allocations: 346.8 kB / 473 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.1641, allocations: 55.97 kB / 473 MB, free: 8.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.1644, allocations: 194.5 kB / 473.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.1648, allocations: 266.9 kB / 473.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1649, allocations: 4 kB / 473.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006241/0.1655, allocations: 285.3 kB / 473.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1655, allocations: 8 kB / 473.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.1656, allocations: 12.02 kB / 473.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.1656, allocations: 8 kB / 473.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.1659, allocations: 67.91 kB / 473.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.166, allocations: 11.94 kB / 473.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.1662, allocations: 8 kB / 473.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.1663, allocations: 23.94 kB / 473.9 MB, free: 7.137 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0002557/0.1666, allocations: 181.6 kB / 474.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.1667, allocations: 39.52 kB / 474.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003787/0.1671, allocations: 176.7 kB / 474.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1671, allocations: 4 kB / 474.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.1671, allocations: 96 / 474.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1671, allocations: 3.938 kB / 474.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008766/0.168, allocations: 0.5268 MB / 474.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.168, allocations: 0 / 474.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1683, allocations: 35.98 kB / 474.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1683, allocations: 4.031 kB / 474.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.1683, allocations: 8 kB / 474.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1683, allocations: 7.938 kB / 474.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.1683, allocations: 3.938 kB / 474.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005603/0.1689, allocations: 390.8 kB / 475.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.1691, allocations: 124.6 kB / 475.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/0.1691, allocations: 0 / 475.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.1694, allocations: 11.94 kB / 475.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.1695, allocations: 11.92 kB / 475.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.1695, allocations: 8 kB / 475.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003307/0.1698, allocations: 255.2 kB / 475.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1698, allocations: 0 / 475.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000642/0.1705, allocations: 72 kB / 475.8 MB, free: 5.191 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.0001219/0.1706, allocations: 99.19 kB / 475.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005064/0.1711, allocations: 171.6 kB / 476 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1711, allocations: 0 / 476 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1713, allocations: 57.17 kB / 476.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.172, allocations: 104.5 kB / 476.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.1735, allocations: 0.9126 MB / 477.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.174, allocations: 0.8347 MB / 477.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.004e-05/0.1741, allocations: 35.42 kB / 478 MB, free: 2.906 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1741, allocations: 0 / 478 MB, free: 2.906 MB / 350.1 MB Notification: Performance of Templates: time 0.007674/0.1818, allocations: 4.602 MB / 482.6 MB, free: 14.32 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches