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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.377/1.377, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1751/0.1751, allocations: 38.52 MB / 353.2 MB, free: 12.57 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.89 kB / 493.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3105, allocations: 62.48 MB / 0.5432 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004639/0.3151, allocations: 3.454 MB / 0.5466 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.317, allocations: 1.285 MB / 0.5479 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.3171, allocations: 13.09 kB / 0.5479 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005902/0.3177, allocations: 162.6 kB / 0.548 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.318, allocations: 174.8 kB / 0.5482 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002872/0.3183, allocations: 139.6 kB / 0.5483 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.3187, allocations: 281 kB / 0.5486 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.3189, allocations: 119 kB / 0.5487 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.3192, allocations: 128.7 kB / 0.5488 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.3194, allocations: 114.5 kB / 0.5489 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.3194, allocations: 12.56 kB / 0.5489 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003653/0.3198, allocations: 236.1 kB / 0.5492 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.857e-05/0.3198, allocations: 65.75 kB / 0.5492 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.32, allocations: 93.77 kB / 0.5493 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003861/0.3203, allocations: 288.3 kB / 0.5496 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3203, allocations: 0 / 0.5496 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3203, allocations: 1.406 kB / 0.5496 GB, free: 11.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3204, allocations: 0 / 0.5496 GB, free: 11.73 MB / 398.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.0006338/0.321, allocations: 440.9 kB / 0.55 GB, free: 11.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.321, allocations: 16.91 kB / 0.55 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006401/0.3217, allocations: 81.28 kB / 0.5501 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.322, allocations: 197.1 kB / 0.5503 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.322, allocations: 11.14 kB / 0.5503 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.322, allocations: 23.39 kB / 0.5503 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.3225, allocations: 274 kB / 0.5506 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3225, allocations: 1.312 kB / 0.5506 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.3225, allocations: 6.875 kB / 0.5506 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.3225, allocations: 9.391 kB / 0.5506 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003343/0.3228, allocations: 222.2 kB / 0.5508 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.3244, allocations: 1.141 MB / 0.5519 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.3246, allocations: 143.5 kB / 0.5521 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.14e-05/0.3247, allocations: 39.05 kB / 0.5521 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.3247, allocations: 5.531 kB / 0.5521 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.3247, allocations: 36.44 kB / 0.5522 GB, free: 9.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.3247, allocations: 0 / 0.5522 GB, free: 9.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003278/0.3251, allocations: 167 kB / 0.5523 GB, free: 9.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.3251, allocations: 83.14 kB / 0.5524 GB, free: 9.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.3253, allocations: 213 kB / 0.5526 GB, free: 9.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.3254, allocations: 27.2 kB / 0.5526 GB, free: 9.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3255, allocations: 158.3 kB / 0.5528 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.3255, allocations: 45 kB / 0.5528 GB, free: 8.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.3256, allocations: 43.67 kB / 0.5529 GB, free: 8.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3257, allocations: 332.5 kB / 0.5532 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.313e-05/0.3258, allocations: 43.58 kB / 0.5532 GB, free: 8.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.3259, allocations: 113.9 kB / 0.5533 GB, free: 8.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.3262, allocations: 191.9 kB / 0.5535 GB, free: 8.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3262, allocations: 1.344 kB / 0.5535 GB, free: 8.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000292/0.3265, allocations: 203.2 kB / 0.5537 GB, free: 8.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.3265, allocations: 10.66 kB / 0.5537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3265, allocations: 3.406 kB / 0.5537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.3265, allocations: 7.062 kB / 0.5537 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.3267, allocations: 53.81 kB / 0.5538 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.3278, allocations: 1.318 MB / 0.5551 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3279, allocations: 22.45 kB / 0.5551 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.3279, allocations: 8.906 kB / 0.5551 GB, free: 6.82 MB / 398.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.0001531/0.3281, allocations: 147.1 kB / 0.5552 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.3281, allocations: 23.83 kB / 0.5553 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002367/0.3283, allocations: 138.3 kB / 0.5554 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3283, allocations: 2.188 kB / 0.5554 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3283, allocations: 5 kB / 0.5554 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3283, allocations: 1.25 kB / 0.5554 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.329, allocations: 470.2 kB / 0.5558 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.329, allocations: 1.25 kB / 0.5558 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.3292, allocations: 34.8 kB / 0.5559 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3292, allocations: 2.312 kB / 0.5559 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3292, allocations: 6.531 kB / 0.5559 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009266/0.3301, allocations: 1.323 MB / 0.5572 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3301, allocations: 1.062 kB / 0.5572 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.3305, allocations: 305.8 kB / 0.5575 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.3305, allocations: 17.83 kB / 0.5575 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.3305, allocations: 6.219 kB / 0.5575 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.3306, allocations: 1.062 kB / 0.5575 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.994e-05/0.3307, allocations: 17.36 kB / 0.5575 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.3307, allocations: 3.031 kB / 0.5575 GB, free: 4.508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3308, allocations: 148.2 kB / 0.5577 GB, free: 4.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3308, allocations: 1.125 kB / 0.5577 GB, free: 4.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000329/0.3311, allocations: 50.89 kB / 0.5577 GB, free: 4.387 MB / 398.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 0.0001095/0.3312, allocations: 103.2 kB / 0.5578 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.3315, allocations: 125.9 kB / 0.5579 GB, free: 4.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3315, allocations: 0 / 0.5579 GB, free: 4.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.3317, allocations: 56.22 kB / 0.558 GB, free: 4.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.332, allocations: 34.95 kB / 0.558 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009458/0.333, allocations: 0.5522 MB / 0.5585 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.3334, allocations: 0.7498 MB / 0.5593 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.3334, allocations: 22.84 kB / 0.5593 GB, free: 3.008 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3334, allocations: 0 / 0.5593 GB, free: 3.008 MB / 398.1 MB Notification: Performance of Templates: time 0.005029/0.3384, allocations: 3.058 MB / 0.5623 GB, free: 208 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.401337795890868]