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.001878/0.001878, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002242/0.002242, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1911/0.1911, allocations: 38.52 MB / 352.4 MB, free: 12.53 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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) [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.002042/0.002042, allocations: 67.02 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3414, allocations: 62.46 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005948/0.3473, allocations: 3.84 MB / 0.5457 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003596/0.3509, allocations: 2.23 MB / 0.5479 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.3511, allocations: 15.34 kB / 0.5479 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008784/0.352, allocations: 257 kB / 0.5482 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008113/0.3528, allocations: 330.7 kB / 0.5485 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.3535, allocations: 248.1 kB / 0.5487 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000709/0.3542, allocations: 0.5363 MB / 0.5493 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.3546, allocations: 202.3 kB / 0.5495 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005133/0.3551, allocations: 254 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.3554, allocations: 224.3 kB / 0.5499 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.997e-05/0.3555, allocations: 39.03 kB / 0.5499 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008074/0.3563, allocations: 466.6 kB / 0.5504 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.3565, allocations: 134 kB / 0.5505 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.3567, allocations: 189.5 kB / 0.5507 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009243/0.3576, allocations: 0.6822 MB / 0.5514 GB, free: 9.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3576, allocations: 0 / 0.5514 GB, free: 9.309 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3576, allocations: 0 / 0.5514 GB, free: 9.309 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.3576, allocations: 0 / 0.5514 GB, free: 9.309 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001334/0.3589, allocations: 0.7124 MB / 0.5521 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.359, allocations: 13.06 kB / 0.5521 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.688e-05/0.3591, allocations: 64.06 kB / 0.5521 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008813/0.3599, allocations: 104.3 kB / 0.5522 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/0.3606, allocations: 368.6 kB / 0.5526 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.3607, allocations: 17.88 kB / 0.5526 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.067e-05/0.3607, allocations: 27.41 kB / 0.5526 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000877/0.3616, allocations: 445.9 kB / 0.5531 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3616, allocations: 3.938 kB / 0.5531 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.3616, allocations: 7.562 kB / 0.5531 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.3617, allocations: 17.88 kB / 0.5531 GB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.3627, allocations: 0.4918 MB / 0.5536 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.3651, allocations: 1.648 MB / 0.5552 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.366, allocations: 351.6 kB / 0.5555 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003613/0.3664, allocations: 130.9 kB / 0.5556 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.3664, allocations: 13.53 kB / 0.5556 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006065/0.3671, allocations: 294.2 kB / 0.5559 GB, free: 5.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.3671, allocations: 0 / 0.5559 GB, free: 5.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001432/0.3685, allocations: 0.527 MB / 0.5564 GB, free: 5.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.3687, allocations: 303 kB / 0.5567 GB, free: 5.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000488/0.3692, allocations: 344.5 kB / 0.5571 GB, free: 4.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.3692, allocations: 33.7 kB / 0.5571 GB, free: 4.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.3694, allocations: 208.6 kB / 0.5573 GB, free: 4.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.3695, allocations: 107.2 kB / 0.5574 GB, free: 4.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.3696, allocations: 69.69 kB / 0.5575 GB, free: 4.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3698, allocations: 338.8 kB / 0.5578 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.3702, allocations: 147.9 kB / 0.5579 GB, free: 3.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004772/0.3707, allocations: 273 kB / 0.5582 GB, free: 3.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000853/0.3715, allocations: 465.7 kB / 0.5586 GB, free: 2.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.3715, allocations: 4 kB / 0.5586 GB, free: 2.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001104/0.3726, allocations: 0.5182 MB / 0.5591 GB, free: 2.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.3727, allocations: 33.7 kB / 0.5592 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3727, allocations: 4 kB / 0.5592 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.3727, allocations: 8 kB / 0.5592 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.3731, allocations: 95.8 kB / 0.5593 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.3731, allocations: 4.312 kB / 0.5593 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.3734, allocations: 55.75 kB / 0.5593 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.3734, allocations: 16 kB / 0.5593 GB, free: 2.207 MB / 398.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.0002826/0.3737, allocations: 193.7 kB / 0.5595 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.3738, allocations: 43.69 kB / 0.5596 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.3748, allocations: 398.9 kB / 0.56 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.3748, allocations: 11.94 kB / 0.56 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.3748, allocations: 3.984 kB / 0.56 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3749, allocations: 4 kB / 0.56 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.376, allocations: 1.01 MB / 0.561 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.376, allocations: 4 kB / 0.561 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.3762, allocations: 63.89 kB / 0.561 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3762, allocations: 0 / 0.561 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.3763, allocations: 15.98 kB / 0.561 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.3763, allocations: 4 kB / 0.561 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3763, allocations: 3.938 kB / 0.561 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009742/0.3773, allocations: 471.8 kB / 0.5615 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.156e-05/0.3773, allocations: 39.69 kB / 0.5615 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/0.3774, allocations: 16 kB / 0.5615 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.3776, allocations: 27.97 kB / 0.5616 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.3777, allocations: 47.81 kB / 0.5616 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.3778, allocations: 12 kB / 0.5616 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.3781, allocations: 247 kB / 0.5619 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3781, allocations: 3.938 kB / 0.5619 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00048/0.3786, allocations: 103.8 kB / 0.562 GB, free: 15.38 MB / 414.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 (31): * Single equations (assignments): 26 * 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.0031/0.3816, allocations: 1.41 MB / 0.5633 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.3827, allocations: 410.6 kB / 0.5637 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.3827, allocations: 0 / 0.5637 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.3832, allocations: 180.7 kB / 0.5639 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.3837, allocations: 85.11 kB / 0.564 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/0.3896, allocations: 3.715 MB / 0.5676 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.39, allocations: 0.8149 MB / 0.5684 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.3903, allocations: 87.2 kB / 0.5685 GB, free: 8.559 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.3905, allocations: 123.4 kB / 0.5686 GB, free: 8.438 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3905, allocations: 0 / 0.5686 GB, free: 8.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.4279, allocations: 9.286 MB / 0.5777 GB, free: 15.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.98, allocations: 5.5 kB / 0.5777 GB, free: 15.2 MB / 430.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[1] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[1] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[2] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[2] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.102559653998469]