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.001961/0.001961, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.002884/0.002884, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.1854/0.1854, allocations: 38.52 MB / 352.5 MB, free: 12.52 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.002008/0.002008, allocations: 63.91 kB / 492.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3633, allocations: 62.47 MB / 0.542 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.006209/0.3695, allocations: 3.843 MB / 0.5457 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003783/0.3733, allocations: 2.239 MB / 0.5479 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003088/0.3736, allocations: 13.38 kB / 0.5479 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.3746, allocations: 243 kB / 0.5482 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.3756, allocations: 325.3 kB / 0.5485 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000812/0.3764, allocations: 256 kB / 0.5487 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000762/0.3772, allocations: 0.5328 MB / 0.5493 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.3776, allocations: 206 kB / 0.5494 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000509/0.3781, allocations: 251 kB / 0.5497 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.3785, allocations: 227.1 kB / 0.5499 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.3785, allocations: 40.06 kB / 0.5499 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007868/0.3793, allocations: 458.6 kB / 0.5504 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/0.3794, allocations: 137.9 kB / 0.5505 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.3796, allocations: 186.4 kB / 0.5507 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009726/0.3806, allocations: 0.6843 MB / 0.5514 GB, free: 9.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3806, allocations: 5.016 kB / 0.5514 GB, free: 9.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3806, allocations: 3.938 kB / 0.5514 GB, free: 9.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.3806, allocations: 0 / 0.5514 GB, free: 9.285 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.001432/0.3821, allocations: 0.7002 MB / 0.5521 GB, free: 8.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3821, allocations: 13.77 kB / 0.5521 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.3822, allocations: 59.88 kB / 0.5521 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008972/0.3831, allocations: 108.4 kB / 0.5522 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000646/0.3837, allocations: 373 kB / 0.5526 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3838, allocations: 14.25 kB / 0.5526 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.3838, allocations: 30.25 kB / 0.5526 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008722/0.3847, allocations: 446 kB / 0.553 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3847, allocations: 1.5 kB / 0.553 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.912e-05/0.3847, allocations: 14.5 kB / 0.5531 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.254e-05/0.3848, allocations: 18.73 kB / 0.5531 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.3858, allocations: 0.4913 MB / 0.5536 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.3882, allocations: 1.652 MB / 0.5552 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009418/0.3891, allocations: 350.2 kB / 0.5555 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/0.3895, allocations: 134.6 kB / 0.5556 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.3895, allocations: 9.688 kB / 0.5556 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005926/0.3901, allocations: 291.1 kB / 0.5559 GB, free: 5.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.3901, allocations: 3.938 kB / 0.5559 GB, free: 5.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001395/0.3915, allocations: 0.5229 MB / 0.5564 GB, free: 5.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000184/0.3917, allocations: 294.7 kB / 0.5567 GB, free: 5.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000442/0.3921, allocations: 344.5 kB / 0.557 GB, free: 4.695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.3922, allocations: 38.05 kB / 0.5571 GB, free: 4.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.3923, allocations: 208.6 kB / 0.5573 GB, free: 4.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.909e-05/0.3924, allocations: 107.2 kB / 0.5574 GB, free: 4.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.3926, allocations: 69.69 kB / 0.5575 GB, free: 4.262 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3927, allocations: 346.8 kB / 0.5578 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.3931, allocations: 135.9 kB / 0.5579 GB, free: 3.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/0.3936, allocations: 277 kB / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000874/0.3945, allocations: 461.7 kB / 0.5586 GB, free: 2.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3945, allocations: 4 kB / 0.5586 GB, free: 2.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001088/0.3956, allocations: 0.5223 MB / 0.5591 GB, free: 2.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/0.3956, allocations: 37.7 kB / 0.5592 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.3956, allocations: 4 kB / 0.5592 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3957, allocations: 8 kB / 0.5592 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.396, allocations: 91.81 kB / 0.5593 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.396, allocations: 4 kB / 0.5593 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.3963, allocations: 47.75 kB / 0.5593 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3963, allocations: 20 kB / 0.5593 GB, free: 2.18 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.0002474/0.3966, allocations: 193.8 kB / 0.5595 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.101e-05/0.3967, allocations: 47.62 kB / 0.5596 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.3977, allocations: 402.9 kB / 0.5599 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3977, allocations: 11.94 kB / 0.56 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3977, allocations: 8 kB / 0.56 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3977, allocations: 4 kB / 0.56 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.3989, allocations: 1.006 MB / 0.561 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.423e-06/0.3989, allocations: 8.188 kB / 0.561 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.3991, allocations: 63.88 kB / 0.561 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3991, allocations: 0 / 0.561 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.3992, allocations: 15.98 kB / 0.561 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.3992, allocations: 4 kB / 0.561 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.3992, allocations: 7.875 kB / 0.561 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.4002, allocations: 471.7 kB / 0.5615 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.797e-05/0.4002, allocations: 39.7 kB / 0.5615 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.36e-05/0.4003, allocations: 12 kB / 0.5615 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.4005, allocations: 23.97 kB / 0.5616 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.4006, allocations: 43.62 kB / 0.5616 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.4006, allocations: 16 kB / 0.5616 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002845/0.4009, allocations: 247 kB / 0.5619 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4009, allocations: 0 / 0.5619 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004726/0.4014, allocations: 103.8 kB / 0.562 GB, free: 15.35 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.003043/0.4044, allocations: 1.421 MB / 0.5633 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009767/0.4054, allocations: 403.3 kB / 0.5637 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4054, allocations: 4.062 kB / 0.5637 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.4059, allocations: 187.7 kB / 0.5639 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.4064, allocations: 70.7 kB / 0.564 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00569/0.4121, allocations: 3.728 MB / 0.5676 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.4125, allocations: 0.8073 MB / 0.5684 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000272/0.4128, allocations: 95.17 kB / 0.5685 GB, free: 8.516 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.413, allocations: 115.4 kB / 0.5686 GB, free: 8.402 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.413, allocations: 0 / 0.5686 GB, free: 8.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03784/0.4509, allocations: 9.279 MB / 0.5777 GB, free: 15.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.86, allocations: 9.781 kB / 0.5777 GB, free: 15.16 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 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.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: 14.94038455397822]