Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001828/0.001828, allocations: 192 kB / 18.62 MB, free: 4.41 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.371/1.371, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.04 MB / 330.5 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001938, allocations: 63.44 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1319, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005475/0.1375, allocations: 3.323 MB / 461.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.1393, allocations: 1.232 MB / 462.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.1395, allocations: 7.938 kB / 462.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006549/0.1402, allocations: 155.3 kB / 463 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004763/0.1407, allocations: 171.2 kB / 463.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.1411, allocations: 135.6 kB / 463.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.1415, allocations: 283 kB / 463.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.1417, allocations: 118.2 kB / 463.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.142, allocations: 123.5 kB / 463.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.1422, allocations: 111.5 kB / 463.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.1422, allocations: 12 kB / 464 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003592/0.1426, allocations: 231.4 kB / 464.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-05/0.1427, allocations: 55.81 kB / 464.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.1428, allocations: 99.53 kB / 464.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.1432, allocations: 295 kB / 464.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1432, allocations: 0 / 464.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1432, allocations: 0 / 464.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1432, allocations: 0 / 464.6 MB, free: 0.9805 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006286/0.1438, allocations: 0.4911 MB / 465.1 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.1439, allocations: 12.03 kB / 465.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006841/0.1446, allocations: 72.67 kB / 465.2 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.1449, allocations: 268.6 kB / 465.5 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.1449, allocations: 20.69 kB / 465.5 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.145, allocations: 20.36 kB / 465.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.1454, allocations: 279.9 kB / 465.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1454, allocations: 0 / 465.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.1454, allocations: 8 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.1455, allocations: 8.328 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/0.1458, allocations: 228.3 kB / 466 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.1473, allocations: 1.206 MB / 467.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.1475, allocations: 133.1 kB / 467.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.378e-05/0.1476, allocations: 45.86 kB / 467.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.1476, allocations: 0 / 467.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.1477, allocations: 38.56 kB / 467.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.1477, allocations: 0 / 467.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003537/0.148, allocations: 169.3 kB / 467.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.1481, allocations: 81.11 kB / 467.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.1483, allocations: 206.9 kB / 467.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.1483, allocations: 29.7 kB / 467.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/0.1484, allocations: 156 kB / 468.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.1485, allocations: 47.36 kB / 468.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.1485, allocations: 37.7 kB / 468.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.1486, allocations: 326.8 kB / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.6e-05/0.1487, allocations: 43.97 kB / 468.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1488, allocations: 132.9 kB / 468.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.149, allocations: 178.2 kB / 468.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1491, allocations: 0 / 468.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002941/0.1494, allocations: 209.1 kB / 469 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1494, allocations: 8 kB / 469 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.1494, allocations: 4 kB / 469 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1494, allocations: 7.938 kB / 469 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.1497, allocations: 43.97 kB / 469.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009151/0.1506, allocations: 1.428 MB / 470.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.1507, allocations: 19.84 kB / 470.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.1507, allocations: 12.09 kB / 470.5 MB, free: 10.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.1509, allocations: 153.7 kB / 470.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.1509, allocations: 15.81 kB / 470.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.1511, allocations: 143.5 kB / 470.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1512, allocations: 4 kB / 470.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.1512, allocations: 0 / 470.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1512, allocations: 0 / 470.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006151/0.1518, allocations: 499.9 kB / 471.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1518, allocations: 0 / 471.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.152, allocations: 35.97 kB / 471.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.152, allocations: 4 kB / 471.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.152, allocations: 0 / 471.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007935/0.1528, allocations: 1.42 MB / 472.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1529, allocations: 0 / 472.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.1532, allocations: 317.7 kB / 473.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.227e-05/0.1532, allocations: 92.95 kB / 473.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.1533, allocations: 7.984 kB / 473.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.1534, allocations: 0 / 473.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.051e-05/0.1534, allocations: 8 kB / 473.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.1534, allocations: 11.98 kB / 473.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.1536, allocations: 152.7 kB / 473.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1536, allocations: 0 / 473.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003375/0.1539, allocations: 51.84 kB / 473.4 MB, free: 7.402 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.414e-05/0.154, allocations: 99.19 kB / 473.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.1543, allocations: 133.9 kB / 473.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1543, allocations: 4.188 kB / 473.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.1545, allocations: 55.84 kB / 473.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.1549, allocations: 40.34 kB / 473.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008755/0.1558, allocations: 0.5114 MB / 474.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.1561, allocations: 0.7359 MB / 475 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.253e-05/0.1562, allocations: 33.52 kB / 475 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.1562, allocations: 19.44 kB / 475 MB, free: 5.715 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1562, allocations: 4 kB / 475 MB, free: 5.711 MB / 350.1 MB Notification: Performance of Templates: time 0.004282/0.1605, allocations: 1.493 MB / 476.5 MB, free: 4.227 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches