Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.00132/0.00132, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.001482/0.001482, allocations: 170.2 kB / 24.5 MB, free: 3.453 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.534/1.534, allocations: 177.2 MB / 204.9 MB, free: 9.027 MB / 190.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.177/0.177, allocations: 29.42 MB / 290.7 MB, free: 3.301 MB / 270.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.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") [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.002105/0.002105, allocations: 63.91 kB / 431.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.338, allocations: 62.44 MB / 493.6 MB, free: 37.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004289/0.3423, allocations: 3.672 MB / 497.3 MB, free: 35.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.3449, allocations: 2.054 MB / 499.3 MB, free: 33.97 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.345, allocations: 14.28 kB / 499.4 MB, free: 33.96 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007592/0.3458, allocations: 240.5 kB / 499.6 MB, free: 33.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006253/0.3464, allocations: 322.3 kB / 499.9 MB, free: 33.64 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.3469, allocations: 259.6 kB / 0.4884 GB, free: 33.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.3473, allocations: 0.5318 MB / 0.489 GB, free: 33.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.3477, allocations: 194.8 kB / 0.4891 GB, free: 33.15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.348, allocations: 251 kB / 0.4894 GB, free: 33.03 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002597/0.3483, allocations: 216 kB / 0.4896 GB, free: 32.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.3484, allocations: 43.25 kB / 0.4896 GB, free: 32.94 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005251/0.3489, allocations: 392.8 kB / 0.49 GB, free: 32.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.349, allocations: 136.6 kB / 0.4901 GB, free: 32.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3491, allocations: 157.1 kB / 0.4903 GB, free: 32.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006678/0.3498, allocations: 0.6982 MB / 0.491 GB, free: 32.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3498, allocations: 0 / 0.491 GB, free: 32.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3498, allocations: 0 / 0.491 GB, free: 32.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.3498, allocations: 4 kB / 0.491 GB, free: 32.38 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001155/0.351, allocations: 0.7046 MB / 0.4917 GB, free: 31.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.351, allocations: 17.33 kB / 0.4917 GB, free: 31.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000891/0.3519, allocations: 108.3 kB / 0.4918 GB, free: 31.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004871/0.3524, allocations: 334.6 kB / 0.4921 GB, free: 31.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.3524, allocations: 17.78 kB / 0.4921 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.714e-05/0.3525, allocations: 27.34 kB / 0.4921 GB, free: 31.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007326/0.3532, allocations: 485 kB / 0.4926 GB, free: 31.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3532, allocations: 7.922 kB / 0.4926 GB, free: 31.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/0.3532, allocations: 18.08 kB / 0.4926 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.02e-05/0.3533, allocations: 12.81 kB / 0.4926 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009253/0.3542, allocations: 0.5445 MB / 0.4932 GB, free: 31.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.3559, allocations: 1.562 MB / 0.4947 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009419/0.3568, allocations: 383.3 kB / 0.4951 GB, free: 29.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.3571, allocations: 153.2 kB / 0.4952 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3572, allocations: 10.16 kB / 0.4952 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004829/0.3577, allocations: 305.1 kB / 0.4955 GB, free: 29.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.704e-06/0.3577, allocations: 0 / 0.4955 GB, free: 29.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.001237/0.3589, allocations: 0.5686 MB / 0.4961 GB, free: 29.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.359, allocations: 296.2 kB / 0.4964 GB, free: 29.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.3593, allocations: 375.6 kB / 0.4967 GB, free: 28.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3593, allocations: 36.86 kB / 0.4967 GB, free: 28.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.3594, allocations: 206.2 kB / 0.4969 GB, free: 28.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.3595, allocations: 109.5 kB / 0.497 GB, free: 28.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.45e-05/0.3596, allocations: 72.5 kB / 0.4971 GB, free: 28.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.572e-05/0.3596, allocations: 350.4 kB / 0.4974 GB, free: 28.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.36, allocations: 178.9 kB / 0.4976 GB, free: 28.13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.3604, allocations: 340.9 kB / 0.4979 GB, free: 27.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.3611, allocations: 493.8 kB / 0.4984 GB, free: 27.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3611, allocations: 0 / 0.4984 GB, free: 27.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009388/0.3621, allocations: 0.5752 MB / 0.499 GB, free: 27.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3621, allocations: 43.17 kB / 0.499 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3621, allocations: 3.156 kB / 0.499 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.3621, allocations: 6.469 kB / 0.499 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.3625, allocations: 91.17 kB / 0.4991 GB, free: 27.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.3625, allocations: 9.766 kB / 0.4991 GB, free: 27.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.3627, allocations: 50.14 kB / 0.4992 GB, free: 27.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.3628, allocations: 16.81 kB / 0.4992 GB, free: 27.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0001694/0.3629, allocations: 194.8 kB / 0.4994 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.363, allocations: 55.09 kB / 0.4994 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009125/0.3639, allocations: 467.2 kB / 0.4999 GB, free: 26.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3639, allocations: 5.844 kB / 0.4999 GB, free: 26.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3639, allocations: 3.156 kB / 0.4999 GB, free: 26.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3639, allocations: 6.484 kB / 0.4999 GB, free: 26.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006892/0.3646, allocations: 0.9521 MB / 0.5008 GB, free: 26.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.3646, allocations: 10.61 kB / 0.5008 GB, free: 26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.3649, allocations: 72.58 kB / 0.5009 GB, free: 26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3649, allocations: 3.25 kB / 0.5009 GB, free: 26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.3649, allocations: 13.72 kB / 0.5009 GB, free: 25.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3649, allocations: 3.219 kB / 0.5009 GB, free: 25.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3649, allocations: 3.188 kB / 0.5009 GB, free: 25.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008852/0.3658, allocations: 0.5457 MB / 0.5015 GB, free: 25.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.3659, allocations: 41.08 kB / 0.5015 GB, free: 25.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/0.3659, allocations: 18.91 kB / 0.5015 GB, free: 25.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.3662, allocations: 27.3 kB / 0.5015 GB, free: 25.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.827e-05/0.3663, allocations: 44.27 kB / 0.5016 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.3663, allocations: 20.95 kB / 0.5016 GB, free: 25.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.3665, allocations: 270.1 kB / 0.5019 GB, free: 25.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3665, allocations: 0 / 0.5019 GB, free: 25.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004523/0.367, allocations: 112.1 kB / 0.502 GB, free: 25.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001826/0.3688, allocations: 0.5477 MB / 0.5025 GB, free: 25.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008937/0.3697, allocations: 479.3 kB / 0.503 GB, free: 25.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3697, allocations: 0 / 0.503 GB, free: 25.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.3701, allocations: 212.3 kB / 0.5032 GB, free: 24.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.3706, allocations: 80.39 kB / 0.5032 GB, free: 24.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3718, allocations: 0.7563 MB / 0.504 GB, free: 24.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.3719, allocations: 212.8 kB / 0.5042 GB, free: 24.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.3721, allocations: 87.5 kB / 0.5043 GB, free: 24.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.3722, allocations: 50.12 kB / 0.5043 GB, free: 24.33 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3722, allocations: 0 / 0.5043 GB, free: 24.33 MB / 446.1 MB Notification: Performance of Templates: time 0.009346/0.3816, allocations: 5.555 MB / 0.5097 GB, free: 23.62 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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: 5.176556156016886]