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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001753/0.001754, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.1 MB / 223.1 MB, free: 8.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 90.88 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1689/0.1689, allocations: 38.01 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 59.89 kB / 421.9 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3901, allocations: 55.23 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005716/0.3959, allocations: 3.565 MB / 480.7 MB, free: 7.395 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.3979, allocations: 1.331 MB / 482 MB, free: 6.457 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.3981, allocations: 11.94 kB / 482 MB, free: 6.453 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000651/0.3988, allocations: 148.7 kB / 482.2 MB, free: 6.363 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000399/0.3992, allocations: 153 kB / 482.3 MB, free: 6.285 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.3995, allocations: 120.5 kB / 482.4 MB, free: 6.223 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004642/0.4, allocations: 402 kB / 482.8 MB, free: 6.074 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.4003, allocations: 112.7 kB / 482.9 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.4005, allocations: 110.8 kB / 483 MB, free: 5.977 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.4007, allocations: 112.1 kB / 483.1 MB, free: 5.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.4007, allocations: 9.406 kB / 483.2 MB, free: 5.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004505/0.4012, allocations: 282.4 kB / 483.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.91e-05/0.4013, allocations: 62.72 kB / 483.5 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.4014, allocations: 84.97 kB / 483.6 MB, free: 5.754 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.4018, allocations: 303.3 kB / 483.9 MB, free: 5.641 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.4019, allocations: 5.031 kB / 483.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4019, allocations: 0.7969 kB / 483.9 MB, free: 5.637 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.4019, allocations: 7.938 kB / 483.9 MB, free: 5.629 MB / 314.7 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.0007124/0.4026, allocations: 0.4956 MB / 484.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.4027, allocations: 11.38 kB / 484.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007366/0.4034, allocations: 72.03 kB / 484.5 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.4037, allocations: 255.2 kB / 484.7 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.4037, allocations: 19.88 kB / 484.7 MB, free: 4.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.4038, allocations: 18.53 kB / 484.7 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000431/0.4042, allocations: 272.8 kB / 485 MB, free: 4.746 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.4042, allocations: 0 / 485 MB, free: 4.746 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.4043, allocations: 7.062 kB / 485 MB, free: 4.742 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/0.4043, allocations: 11.22 kB / 485 MB, free: 4.742 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.4047, allocations: 225.9 kB / 485.2 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.4061, allocations: 1.21 MB / 486.5 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.4064, allocations: 136.1 kB / 486.6 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.395e-05/0.4064, allocations: 46.7 kB / 486.6 MB, free: 3.578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.4065, allocations: 5.812 kB / 486.6 MB, free: 3.574 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.4065, allocations: 36.72 kB / 486.7 MB, free: 3.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.4065, allocations: 0 / 486.7 MB, free: 3.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003416/0.4068, allocations: 166.6 kB / 486.8 MB, free: 3.449 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.4069, allocations: 78.39 kB / 486.9 MB, free: 3.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.4071, allocations: 206.1 kB / 487.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.4071, allocations: 28 kB / 487.1 MB, free: 3.191 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.4072, allocations: 157.8 kB / 487.3 MB, free: 3.047 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.4072, allocations: 45.89 kB / 487.3 MB, free: 3.012 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-05/0.4073, allocations: 43.22 kB / 487.4 MB, free: 2.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.4074, allocations: 328.7 kB / 487.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.4074, allocations: 41.75 kB / 487.7 MB, free: 2.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.4075, allocations: 130.5 kB / 487.9 MB, free: 2.523 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.4077, allocations: 181.5 kB / 488.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4077, allocations: 0 / 488.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002666/0.408, allocations: 209.2 kB / 488.3 MB, free: 2.273 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.408, allocations: 5.5 kB / 488.3 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4081, allocations: 3.312 kB / 488.3 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4081, allocations: 8.062 kB / 488.3 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.4083, allocations: 49.94 kB / 488.3 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000668/0.409, allocations: 1.327 MB / 489.7 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.907e-05/0.4091, allocations: 21.25 kB / 489.7 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.4091, allocations: 9.047 kB / 489.7 MB, free: 0.8867 MB / 314.7 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.0001044/0.4092, allocations: 147.7 kB / 489.8 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.4093, allocations: 20 kB / 489.8 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.4095, allocations: 147.6 kB / 490 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.4095, allocations: 3.25 kB / 490 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.4095, allocations: 3.938 kB / 490 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.4095, allocations: 2.297 kB / 490 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.4101, allocations: 0.4901 MB / 490.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.4101, allocations: 1.969 kB / 490.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.4103, allocations: 28.81 kB / 490.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4103, allocations: 1.797 kB / 490.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.4104, allocations: 2.812 kB / 490.5 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.4114, allocations: 1.332 MB / 491.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4114, allocations: 1.094 kB / 491.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.4135, allocations: 1.435 MB / 493.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.939e-05/0.4136, allocations: 97 kB / 493.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.4136, allocations: 9.625 kB / 493.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.482e-05/0.4137, allocations: 2.375 kB / 493.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.4138, allocations: 12.17 kB / 493.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.4138, allocations: 4.844 kB / 493.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001873/0.414, allocations: 152.5 kB / 493.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.414, allocations: 0 / 493.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004777/0.4145, allocations: 64.94 kB / 493.6 MB, free: 13.41 MB / 330.7 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 0.0001364/0.4147, allocations: 103.2 kB / 493.7 MB, free: 13.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003896/0.415, allocations: 124.2 kB / 493.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4151, allocations: 0 / 493.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.4152, allocations: 57.58 kB / 493.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.4156, allocations: 36.19 kB / 493.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4169, allocations: 0.7466 MB / 494.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.4172, allocations: 0.7505 MB / 495.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.4173, allocations: 32.19 kB / 495.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.57e-05/0.4174, allocations: 17.83 kB / 495.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4174, allocations: 0 / 495.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of Templates: time 0.004883/0.4223, allocations: 1.574 MB / 497.1 MB, free: 11.8 MB / 330.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches